remove duplicate backup_files() funcs #12

Merged
merged 1 commit into from Sep 27, 2012
+1 −9
View
10 tablesnap
@@ -335,15 +335,7 @@ def backup_file(handler, filename, filedir):
if filename.find('-tmp') != -1:
return
-def backup_files(handler, paths, log=default_log):
- for path in paths:
- log.info('Backing up %s' % path)
- for filename in os.listdir(path):
- if filename.find('-tmp') != -1:
- continue
- handler.add_file(fullpath)
-
-def backup_files(handler, paths, recurse):
+def backup_files(handler, paths, recurse, log=default_log):
for path in paths:
log.info('Backing up %s' % path)
if recurse: