Mercurial > public > src > rhodecode
comparison pylons_app/lib/backup_manager.py @ 36:846e2d8672c4
Added message when file removing
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Sun, 14 Mar 2010 13:38:47 +0100 |
parents | c92f827280a3 |
children | 7f88d7088f9c |
comparison
equal
deleted
inserted
replaced
35:c92f827280a3 | 36:846e2d8672c4 |
---|---|
72 subprocess.call(cmd) | 72 subprocess.call(cmd) |
73 logging.info('Transfered file %s to %s', self.backup_file_name, cmd[4]) | 73 logging.info('Transfered file %s to %s', self.backup_file_name, cmd[4]) |
74 | 74 |
75 | 75 |
76 def rm_file(self): | 76 def rm_file(self): |
77 logging.info('Removing file %s', self.backup_file_name) | |
77 os.remove(os.path.join(self.backup_file_path, self.backup_file_name)) | 78 os.remove(os.path.join(self.backup_file_path, self.backup_file_name)) |
78 | 79 |
79 | 80 |
80 | 81 |
81 if __name__ == "__main__": | 82 if __name__ == "__main__": |