Fix move_all.
This commit is contained in:
parent
8f448ba554
commit
6f53cb6d8a
1 changed files with 3 additions and 2 deletions
|
@ -20,7 +20,8 @@ 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):
|
||||
for file in files:
|
||||
if destination.with_child(file.basename).exists:
|
||||
raise Exception(file.basename)
|
||||
|
||||
for file in files:
|
||||
|
|
Loading…
Reference in a new issue