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])
|
||||
|
||||
if not src.exists():
|
||||
print("src does not exist: {}".format(str(src)))
|
||||
continue
|
||||
print("src does not exist: {}".format(str(src)))
|
||||
continue
|
||||
|
||||
# create directory
|
||||
dst.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copyfile(src, dst)
|
||||
dst.parent.mkdir(parents=True)
|
||||
shutil.copyfile(str(src), str(dst))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user