Merge pull request #18 from vain/fix-encoding-warning

Print full path when file name decoding fails
This commit is contained in:
Łukasz Langa 2016-10-29 15:04:46 -07:00 committed by GitHub
commit 8c871b1319

View File

@ -115,7 +115,7 @@ def list_existing_paths(directory, expected=(), ignored=(), follow_links=False):
try:
print(
"warning: cannot decode file name:",
path,
p,
file=sys.stderr,
)
except UnicodeDecodeError: