Add support for symlinks when scanning.

pull/39/head
hjnasd 2023-03-11 11:48:31 +00:00 committed by GitHub
parent 44fa7017d7
commit 0a17c23130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ def scan_model(max_size_preview, skip_nsfw_preview):
# scan_log = ""
for model_type, model_folder in model.folders.items():
util.printD("Scanning path: " + model_folder)
for root, dirs, files in os.walk(model_folder):
for root, dirs, files in os.walk(model_folder, followlinks=True):
for filename in files:
# check ext
item = os.path.join(root, filename)