Encode before path join
This commit is contained in:
1 parent
8999f51dc9
commit
b87c00c041
1 file changed
+1
-1
@@ -151,7 +151,7 @@ class Scanner(Plugin):
|
|||||||
try:
|
try:
|
||||||
files = []
|
files = []
|
||||||
for root, dirs, walk_files in scandir.walk(folder, followlinks=True):
|
for root, dirs, walk_files in scandir.walk(folder, followlinks=True):
|
||||||
files.extend([sp(os.path.join(root, filename)) for filename in walk_files])
|
files.extend([sp(os.path.join(toUnicode(root), toUnicode(filename))) for filename in walk_files])
|
||||||
|
|
||||||
# Break if CP wants to shut down
|
# Break if CP wants to shut down
|
||||||
if self.shuttingDown():
|
if self.shuttingDown():
|
||||||
|
|||||||
Reference in new issue
Block a user