1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-03-10 05:34:36 +00:00

[#172 state:fixed] Fixed the Folders scan type which didn't work at all.

This commit is contained in:
Virgil Dupras 2011-08-25 09:37:30 -04:00
parent 905c194cdd
commit a64ddcb804

View File

@ -45,7 +45,7 @@ class Directories(DirectoriesBase):
if path[:2] == Path('/Users') and path[3:] in self.HOME_PATH_TO_EXCLUDE: if path[:2] == Path('/Users') and path[3:] in self.HOME_PATH_TO_EXCLUDE:
return DirectoryState.Excluded return DirectoryState.Excluded
def _get_folders(self, from_folder): def _get_folders(self, from_folder, j):
# We don't want to scan bundle's subfolder even in Folders mode. Bundle's integrity has to # We don't want to scan bundle's subfolder even in Folders mode. Bundle's integrity has to
# stay intact. # stay intact.
if is_bundle(str(from_folder.path)): if is_bundle(str(from_folder.path)):
@ -56,7 +56,7 @@ class Directories(DirectoriesBase):
yield from_folder yield from_folder
return return
else: else:
for folder in DirectoriesBase._get_folders(self, from_folder): for folder in DirectoriesBase._get_folders(self, from_folder, j):
yield folder yield folder
@staticmethod @staticmethod