diff options
author | Alexis Christoforides <alexis@thenull.net> | 2019-02-21 01:07:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-21 01:07:05 +0300 |
commit | ff24d869bb24b272a8254731003238e819a2ad78 (patch) | |
tree | 31a80eee21919c7e3a57f55878cbf22ef867e377 | |
parent | 45d61774e84f3f99c6e49d078396096d8e52c48e (diff) | |
parent | 5d818c1af4d10c9325a40aa66dc0c994aa3e1781 (diff) |
Merge pull request #85 from mono/aj-test-msbuild
iterate_dir: Include symlinks to dirs also
-rw-r--r-- | bockbuild/util/util.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bockbuild/util/util.py b/bockbuild/util/util.py index 96233cc..115a069 100644 --- a/bockbuild/util/util.py +++ b/bockbuild/util/util.py @@ -548,6 +548,12 @@ def iterate_dir(dir, with_links=False, with_dirs=False, summary=False): dirs = dirs + 1 if with_dirs: yield root + if with_dirs and with_links: + for subdir in subdirs: + path = os.path.join(root, subdir) + if os.path.islink(path): + links = links + 1 + yield path for file in filelist: path = os.path.join(root, file) if os.path.islink(path): |