1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

[#168 state:fixed] Made the file collection phase cancellable.

This commit is contained in:
Virgil Dupras
2011-07-11 14:18:55 -04:00
parent 577cee1a38
commit 99e3c34060
3 changed files with 14 additions and 11 deletions

View File

@@ -371,9 +371,9 @@ class DupeGuru(RegistrableApplication, Broadcaster):
def do(j):
j.set_progress(0, tr("Collecting files to scan"))
if self.scanner.scan_type == scanner.ScanType.Folders:
files = list(self.directories.get_folders())
files = list(self.directories.get_folders(j))
else:
files = list(self.directories.get_files())
files = list(self.directories.get_files(j))
if self.options['ignore_hardlink_matches']:
files = self._remove_hardlink_dupes(files)
logging.info('Scanning %d files' % len(files))