[#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
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class Directories(DirectoriesBase):
if path[:2] == Path('/Users') and path[3:] in self.HOME_PATH_TO_EXCLUDE:
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
# stay intact.
if is_bundle(str(from_folder.path)):
@ -56,7 +56,7 @@ class Directories(DirectoriesBase):
yield from_folder
return
else:
for folder in DirectoriesBase._get_folders(self, from_folder):
for folder in DirectoriesBase._get_folders(self, from_folder, j):
yield folder
@staticmethod