mirror of
https://github.com/9001/copyparty.git
synced 2025-12-08 06:03:29 -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 = []
|
||||
bname = fsenc(name)
|
||||
while bname:
|
||||
if os.path.isdir(bname):
|
||||
if os.path.isdir(bname) or bname in todo:
|
||||
break
|
||||
todo.append(bname)
|
||||
bname = os.path.dirname(bname)
|
||||
|
|
|
|||
Loading…
Reference in a new issue