From a2a526866f120dd5155b01c5bc7b2a6044133393 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Mon, 24 Jan 2011 12:35:07 +0100 Subject: [PATCH] Don't show bundles as subfolders in Folder Selection dialog. --- core_se/app_cocoa.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core_se/app_cocoa.py b/core_se/app_cocoa.py index 803a34ae..75758684 100644 --- a/core_se/app_cocoa.py +++ b/core_se/app_cocoa.py @@ -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):