Don't show bundles as subfolders in Folder Selection dialog.

This commit is contained in:
Virgil Dupras 2011-01-24 12:35:07 +01:00
parent d3338b699e
commit a2a526866f
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ class Directories(DirectoriesBase):
if path[:2] == Path('/Users') and path[3:] in self.HOME_PATH_TO_EXCLUDE:
return STATE_EXCLUDED
@staticmethod
def get_subfolders(path):
result = DirectoriesBase.get_subfolders(path)
return [p for p in result if not is_bundle(str(p))]
class DupeGuru(DupeGuruBase):
def __init__(self):