mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-10-10 19:47:06 +08:00
actually, removing old tmpdir isn't needed
I tested - downloader code handles this case well already (also rmdir was wrong func anyway, needed shutil.rmtree if it had content)
This commit is contained in:
parent
762c267821
commit
c942b6c935
@ -169,8 +169,6 @@ class FrontendManager:
|
|||||||
)
|
)
|
||||||
if not os.path.exists(web_root):
|
if not os.path.exists(web_root):
|
||||||
tmp_path = web_root + ".tmp"
|
tmp_path = web_root + ".tmp"
|
||||||
if os.path.exists(tmp_path):
|
|
||||||
os.rmdir(tmp_path)
|
|
||||||
try:
|
try:
|
||||||
os.makedirs(tmp_path, exist_ok=True)
|
os.makedirs(tmp_path, exist_ok=True)
|
||||||
logging.info(
|
logging.info(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user