]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blobdiff - modules/ftptree.py
Log what file was supposed to be rmed.
[projects/pld-ftp-admin.git] / modules / ftptree.py
index 48c829e43a207d64be720562c56336727ae311dc..a8964f198c0f928ea8d473e119003c268f6f4609 100644 (file)
@@ -35,8 +35,11 @@ def rm(file, test=False):
         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
This page took 0.025166 seconds and 4 git commands to generate.