diff options
Diffstat (limited to 'dupfiles')
-rwxr-xr-x | dupfiles | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -266,11 +266,18 @@ class Dupfiles(cliapp.Application): else: keep = duplicates.pop() + ts = ttystatus.TerminalStatus(period=0.1) + ts['filenames'] = duplicates + ts.format('removing %Index(filename,filenames)') + for pathname in duplicates: + ts['filename'] = pathname if self.settings['no-act']: self.output.write('rm %s\n' % pathname) else: os.remove(pathname) + + ts.finish() def report(self, duplicates): sys.stdout.write('\n'.join(duplicates)) |