stable-diffusion-webui
stable-diffusion-webui copied to clipboard
Fix docker tmp/ and extensions/ handling for docker.
This should address #4485 and #4474
We try to do the rename first since it'll be faster and more reliable for setups where it works, but when it doesn't we fall back to using shutil.move()
so that it can handle when there's multiple filesystems involved (usually docker, or symlinks involved).
Tested and working for me
the idea is to prevent a situation where a script is only copied halfway and the program stops working and you end up with incomplete copy of the repo. The solution I'd prefer is to make a temp dir inside extensions dir then.
Make it happen