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): ...@@ -130,7 +130,7 @@ def checkAction(arguments):
else: else:
return True return True
else: else:
return os.path.exists(arguments['file_token']) return os.path.exists(os.path.join(arguments['target_directory'], arguments['file_token']))
def rename(arguments): def rename(arguments):
source = os.path.join(arguments['target_directory'], arguments['source']) source = os.path.join(arguments['target_directory'], arguments['source'])
...@@ -174,4 +174,4 @@ def chmod(arguments): ...@@ -174,4 +174,4 @@ def chmod(arguments):
if not os.path.exists(path): if not os.path.exists(path):
print "Error when changing mode: '%s': no such file or directory" % path print "Error when changing mode: '%s': no such file or directory" % path
continue continue
os.chmod(path, arguments['mode']) os.chmod(path, arguments['mode'])
\ No newline at end of file
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