From 00ee4fa0e9fa2518dcc5afeecd46fdfbcfd803ad Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Sun, 11 Apr 2021 15:24:07 +0200 Subject: [PATCH] Fix per cartelle di rete --- core/filetools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/filetools.py b/core/filetools.py index c3ffdcf6..b0482613 100644 --- a/core/filetools.py +++ b/core/filetools.py @@ -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