Fix per cartelle di rete

This commit is contained in:
mac12m99
2021-04-11 15:24:07 +02:00
parent 5336a7e448
commit 00ee4fa0e9

View File

@@ -95,6 +95,9 @@ def encode(path, _samba=False):
if fs_encoding and not PY3:
path = path.encode(fs_encoding, "ignore")
if PY3 and isinstance(path, bytes):
path = path.decode(fs_encoding)
return path