mirror of
https://github.com/9001/copyparty.git
synced 2025-12-27 13:46:42 -05:00
fix deadlock on lost windows drive (closes #971);
it would spin on '\\\\?\\g:\\'
This commit is contained in:
@@ -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