mirror of
https://github.com/9001/copyparty.git
synced 2026-01-12 15:52:39 -07:00
fix deadlock on lost windows drive (closes #971);
it would spin on '\\\\?\\g:\\'
This commit is contained in:
parent
a9378a8e9c
commit
945b2276a0
|
|
@ -40,7 +40,7 @@ def makedirs(name: str, vf: dict[str, Any] = MKD_755, exist_ok: bool = True) ->
|
||||||
todo = []
|
todo = []
|
||||||
bname = fsenc(name)
|
bname = fsenc(name)
|
||||||
while bname:
|
while bname:
|
||||||
if os.path.isdir(bname):
|
if os.path.isdir(bname) or bname in todo:
|
||||||
break
|
break
|
||||||
todo.append(bname)
|
todo.append(bname)
|
||||||
bname = os.path.dirname(bname)
|
bname = os.path.dirname(bname)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue