mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
allow symbolic links to be followed during autoimport
This commit is contained in:
parent
cd0e4bc1d7
commit
b524bf3c04
@ -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]):
|
||||
|
Loading…
Reference in New Issue
Block a user