Commit 4ae03d3f authored by Alain Takoudjou's avatar Alain Takoudjou Committed by Cédric de Saint Martin

Fix bug when using file_token option

parent c4b8e9b0
......@@ -130,7 +130,7 @@ def checkAction(arguments):
else:
return True
else:
return os.path.exists(arguments['file_token'])
return os.path.exists(os.path.join(arguments['target_directory'], arguments['file_token']))
def rename(arguments):
source = os.path.join(arguments['target_directory'], arguments['source'])
......@@ -174,4 +174,4 @@ def chmod(arguments):
if not os.path.exists(path):
print "Error when changing mode: '%s': no such file or directory" % path
continue
os.chmod(path, arguments['mode'])
\ No newline at end of file
os.chmod(path, arguments['mode'])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment