Print full path when file name decoding fails

This commit is contained in:
Peter Hofmann 2016-09-19 18:16:55 +02:00
parent 5ed89d8b1a
commit 4bd293f024

View File

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