allow symbolic links to be followed during autoimport

This commit is contained in:
Lincoln Stein 2023-08-14 07:37:47 -04:00
parent cd0e4bc1d7
commit b524bf3c04

View File

@ -56,7 +56,7 @@ class ModelSearch(ABC):
self.on_search_completed()
def walk_directory(self, path: Path):
for root, dirs, files in os.walk(path):
for root, dirs, files in os.walk(path, followlinks=True):
if str(Path(root).name).startswith("."):
self._pruned_paths.add(root)
if any([Path(root).is_relative_to(x) for x in self._pruned_paths]):