diff options
Diffstat (limited to 'PC/layout/support/filesets.py')
-rw-r--r-- | PC/layout/support/filesets.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/layout/support/filesets.py b/PC/layout/support/filesets.py index 47f727c..3f63f68 100644 --- a/PC/layout/support/filesets.py +++ b/PC/layout/support/filesets.py @@ -93,6 +93,8 @@ def _return_true(f): def rglob(root, patterns, condition=None): + if not os.path.isdir(root): + return if isinstance(patterns, tuple): for p in patterns: yield from _rglob(root, p, condition or _return_true) |