Closed PaulCoddington closed 1 year ago
Amended local copy to resolve issue pending official fix.
modules/shared.py
- for root, dirs, files in os.walk(path):
+ for root, dirs, files in os.walk(path, followlinks=True):
modules/ui_extra_networks.py
- for root, dirs, files in os.walk(parentdir):
+ for root, dirs, files in os.walk(parentdir, followlinks=True):
Possibly relevant, but out of scope…
modules/textual_inversion/textual_inversion.py
- for root, dirs, fns in os.walk(shared.cmd_opts.textual_inversion_templates_dir):
+ for root, dirs, fns in os.walk(shared.cmd_opts.textual_inversion_templates_dir, followlinks=True):
Some 3rd party extensions may need similar amendments for some users depending on how they use symlinks (out of scope).
thanks @PaulCoddington
Is there an existing issue for this?
What happened?
Symlink subfolders no longer load in Extra Networks. Issue #142 may have been prematurely closed.
Most recent commit where Extra Networks worked with symlinks:
Revision: https://github.com/anapnoe/stable-diffusion-webui-ux/commit/f2b9c2cb4fa5f0e866c1b6f84e44d12ff6653af3 Date: 12/05/2023 11:57:05 pm
Looks like symlinks were broken here:
Revision: https://github.com/anapnoe/stable-diffusion-webui-ux/commit/b08500cec8a791ef20082628b49b17df833f5dda Date: 13/05/2023 5:16:37 pm
Steps to reproduce the problem
eg:
\models\LoRA\symlink\…
Symlink folder will be listed, but no models or subfolders within the symlink will be displayed. Standard subfolders are listed and contain models, as expected.
What should have happened?
Extra Networks pane should display models and subfolders contained within all subfolders, including symlink subfolders.
Commit where the problem happens
3c31e25
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
List of extensions
a1111-sd-webui-lycoris a1111-sd-webui-tagcomplete clip-interrogator-ext multidiffusion-upscaler-for-automatic1111 sd-dynamic-thresholding sd-extension-aesthetic-scorer sd-extension-steps-animation sd-extension-system-info sd-webui-aspect-ratio-helper sd-webui-controlnet sd-webui-cutoff sd-webui-model-converter seed_travel stable-diffusion-webui-images-browser stable-diffusion-webui-rembg ultimate-upscale-for-automatic1111
Console logs
Additional information
No response