tested with python3.4.9
This commit is contained in:
parent
d2d8f520ad
commit
4e03273544
8
main.py
8
main.py
@ -73,12 +73,12 @@ def main():
|
|||||||
dst = Path(files[file])
|
dst = Path(files[file])
|
||||||
|
|
||||||
if not src.exists():
|
if not src.exists():
|
||||||
print("src does not exist: {}".format(str(src)))
|
print("src does not exist: {}".format(str(src)))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# create directory
|
# create directory
|
||||||
dst.parent.mkdir(parents=True, exist_ok=True)
|
dst.parent.mkdir(parents=True)
|
||||||
shutil.copyfile(src, dst)
|
shutil.copyfile(str(src), str(dst))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user