Only check exists on file
This commit is contained in:
1 parent
f1a2d960bc
commit
a6ff34a47f
1 file changed
+1
-1
@@ -791,7 +791,7 @@ Remove it if you want it to be renamed (again, or at least let it try again)
|
|||||||
dest = sp(dest)
|
dest = sp(dest)
|
||||||
try:
|
try:
|
||||||
|
|
||||||
if os.path.exists(dest):
|
if os.path.exists(dest) and os.path.isfile(dest):
|
||||||
raise Exception('Destination "%s" already exists' % dest)
|
raise Exception('Destination "%s" already exists' % dest)
|
||||||
|
|
||||||
move_type = self.conf('file_action')
|
move_type = self.conf('file_action')
|
||||||
|
|||||||
Reference in new issue
Block a user