Imported Upstream version 6.0.0.190

Former-commit-id: e193e16b440728be216d156a01a02450e7882323
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-04-22 22:18:01 +00:00
parent dec0eff6dd
commit b8f7d9129e
52 changed files with 64 additions and 47 deletions

View File

@@ -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):