Address issue #791 -- follow symlinks when getting a list of items in a FileRepo

This commit is contained in:
Greg Neagle
2017-08-01 10:03:43 -07:00
parent 1ab3e19c97
commit 744840d85a
+2 -1
View File
@@ -190,7 +190,8 @@ class FileRepo(Repo):
search_dir = os.path.join(self.root, kind)
file_list = []
try:
for (dirpath, dirnames, filenames) in os.walk(search_dir):
for (dirpath, dirnames, filenames) in os.walk(search_dir,
followlinks=True):
# don't recurse into directories that start with a period.
dirnames[:] = [name
for name in dirnames if not name.startswith('.')]