commit 85d5b2e652d951c75a25ec2aa1fd90424e59c1a2
Author: Jan RÄ™korajski <[email protected]>
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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to