Fix move_all.

master
voussoir 2020-09-11 17:03:31 -07:00
parent 8f448ba554
commit 6f53cb6d8a
1 changed files with 3 additions and 2 deletions

View File

@ -20,8 +20,9 @@ destination = pathclass.Path(sys.argv[-1])
if not destination.is_dir:
raise TypeError(destination)
if any(destination.with_child(file.basename).exists for file in files):
raise Exception(file.basename)
for file in files:
if destination.with_child(file.basename).exists:
raise Exception(file.basename)
for file in files:
new_path = destination.with_child(file.basename)