Ficus
  • Overview
  • Repository
  • Tickets
  • Statistics
  • Projects

Repository

Move file when it's downloaded

Parent commits : 24e113843bf3f744c5895fb02fe3bdde9fc03ee3,
Children commits : 8096b3ce3c2b24bc1c08473164137b5f5a342cb1,

By Laurent Defert on 2012-11-07 16:10:34
Move file when it's downloaded

Browse content
Difference with parent commit 24e113843bf3f744c5895fb02fe3bdde9fc03ee3
Files modified:
ficus/downloads.py
--- 
+++ 
@@ -131,3 +131,5 @@
         full_filename = self.hdd_full_filename(path) + '.data'
         filename = self.hdd_filename(path)
         logging.debug('Renaming %s to %s', filename, full_filename)
+        mkdir_parents(full_filename)
+        os.rename(filename, full_filename)

Generated with KisssPM