mirror of
https://github.com/9001/copyparty.git
synced 2026-11-15 11:58:28 +00:00
fix deadlock on lost windows drive (closes #971);
it would spin on '\\\\?\\g:\\'
This commit is contained in:
1 parent
a9378a8e9c
commit
945b2276a0
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user