[projects/pld-ftp-admin] Fix detection of missing files on test move

baggins baggins at pld-linux.org
Wed Jul 29 19:18:12 CEST 2015


commit 85d5b2e652d951c75a25ec2aa1fd90424e59c1a2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Jul 29 19:17:40 2015 +0200

    Fix detection of missing files on test move

 modules/ftptree.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/ftptree.py b/modules/ftptree.py
index 3234725..3e5691f 100644
--- a/modules/ftptree.py
+++ b/modules/ftptree.py
@@ -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)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/85d5b2e652d951c75a25ec2aa1fd90424e59c1a2



More information about the pld-cvs-commit mailing list