]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blobdiff - bin/pfa-from-incoming
- Really move and remove files, don't just print info about it
[projects/pld-ftp-admin.git] / bin / pfa-from-incoming
index f6f971c095f7f342386e6fd08ab502d24952837e..7ccd783e38c1491fea1c097720db6f29e8555c1d 100644 (file)
@@ -10,15 +10,17 @@ from baseftptree import BaseFtpTree, BasePkg
 cval=config.value
 
 def log(msg):
-    print msg
+    f=open(os.environ['HOME']+'/pld-ftp-admin/var/log', 'a')
+    f.write(msg+'\n')
+    f.close()
 
 def rm(file):
-    #os.remove()
-    print 'rm: '+file
+    os.remove(file)
+    #print 'rm: '+file
 
 def mv(src, dst):
-    #os.rename()
-    print "mv: %s %s" % (src, dst+'/'+src.split('/')[-1])
+    os.rename(src, dst+'/'+src.split('/')[-1])
+    #print "mv: %s %s" % (src, dst+'/'+src.split('/')[-1])
 
 def findfiles(dir):
     def filterinfos(x):
This page took 0.04491 seconds and 4 git commands to generate.