pld-ftp-admin: modules/ftptree.py Log what file was supposed to be rmed.
arekm
arekm at pld-linux.org
Fri May 9 08:19:39 CEST 2008
Author: arekm Date: Fri May 9 06:19:39 2008 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
Log what file was supposed to be rmed.
---- Files affected:
pld-ftp-admin/modules:
ftptree.py (1.34 -> 1.35)
---- Diffs:
================================================================
Index: pld-ftp-admin/modules/ftptree.py
diff -u pld-ftp-admin/modules/ftptree.py:1.34 pld-ftp-admin/modules/ftptree.py:1.35
--- pld-ftp-admin/modules/ftptree.py:1.34 Mon Mar 31 23:40:22 2008
+++ pld-ftp-admin/modules/ftptree.py Fri May 9 08:19:34 2008
@@ -35,8 +35,11 @@
if not os.path.exists(file):
pinfo("TEST os.remove(%s): file doesn't exists" % file)
else:
- os.remove(file)
- #print 'rm: '+file
+ try:
+ os.remove(file)
+ except OSError, e:
+ pinfo("os.remove(%s): %s" % (file, e))
+ raise
def mv(src, dst, test=False):
fsrc = src
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/modules/ftptree.py?r1=1.34&r2=1.35&f=u
More information about the pld-cvs-commit
mailing list