Hack to dump Shift-JIS filenames

This commit is contained in:
Elliot Nunn 2021-08-19 21:07:40 +08:00
parent 4d0927eb65
commit 6ae4baa77b
1 changed files with 1 additions and 0 deletions

View File

@ -264,6 +264,7 @@ class AbstractFolder(MutableMapping):
alias_fixups = list()
valid_alias_targets = dict()
for p, obj in self.iter_paths():
p = [element.encode("mac_roman").decode("shift_jis") for element in p]
blacklist_test = ':'.join(p) + ':'
if blacklist_test.startswith(tuple(blacklist)): continue
if _unsyncability(p[-1]):