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:
parent
905c194cdd
commit
a64ddcb804
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user