]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
Fix detection of missing files on test move
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 29 Jul 2015 17:17:40 +0000 (19:17 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 29 Jul 2015 17:17:40 +0000 (19:17 +0200)
modules/ftptree.py

index 3234725fc6d289a413872791a9daabb4906b4c7f..3e5691f443cab0b74d6eb57566b458a281ea230d 100644 (file)
@@ -46,7 +46,7 @@ def mv(src, dst, test = False):
     fsrc = src
     fdst = dst + '/' + src.split('/')[-1]
     if test:
-        if not os.path.exists(src):
+        if not os.path.exists(fsrc):
             pinfo("TEST os.rename(%s, %s): source doesn't exists" % (fsrc, fdst))
         if not os.path.exists(dst):
             pinfo("TEST destination doesn't exist: %s" % dst)
This page took 0.059828 seconds and 4 git commands to generate.