From ccb5f6b6cc37037597f2449d8feb3e515f77b48a Mon Sep 17 00:00:00 2001 From: ogle Date: Fri, 27 Apr 2012 20:38:44 +0000 Subject: [PATCH] Add /private/* to the isExcludedFilesystem skipdirs. Also, change skipdirs from a list to a set for far faster "in" operator performance. --- code/client/munkilib/munkicommon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/client/munkilib/munkicommon.py b/code/client/munkilib/munkicommon.py index 9016fbfc..19969a34 100644 --- a/code/client/munkilib/munkicommon.py +++ b/code/client/munkilib/munkicommon.py @@ -1698,9 +1698,9 @@ def isExcludedFilesystem(path, _retry=False): return None # always ignore these directories - skipdirs = ['Volumes', 'tmp', '.vol', '.Trashes', '.MobileBackups', - '.Spotlight-V100', '.fseventsd', 'Network', 'net', - 'home', 'cores', 'dev'] + skipdirs = set('Volumes', 'tmp', '.vol', '.Trashes', '.MobileBackups', + '.Spotlight-V100', '.fseventsd', 'Network', 'net', + 'home', 'cores', 'dev', 'private') path_components = path.split('/') if len(path_components) > 1 and path_components[1] in skipdirs: return True