mirror of
https://github.com/9001/copyparty.git
synced 2026-03-29 03:23:28 +10:00
fix reading smb shares on windows
This commit is contained in:
@@ -1856,7 +1856,7 @@ def _msenc(txt: str) -> bytes:
|
||||
txt = absreal(txt)
|
||||
|
||||
ret = txt.encode(FS_ENCODING, "surrogateescape")
|
||||
return ret if ret.startswith(b"\\\\?\\") else b"\\\\?\\" + ret
|
||||
return ret if ret.startswith(b"\\\\") else b"\\\\?\\" + ret
|
||||
|
||||
|
||||
w8dec = _w8dec3 if not PY2 else _w8dec2
|
||||
|
||||
Reference in New Issue
Block a user