From 641929191e63f33ab92b45d5335b14015baa2027 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 12 Feb 2023 13:59:34 +0000 Subject: [PATCH] fix reading smb shares on windows --- copyparty/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/util.py b/copyparty/util.py index 30cc823a..01ad4e6a 100644 --- a/copyparty/util.py +++ b/copyparty/util.py @@ -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