Remember to use errors=strict since this is looking up a filename on the filesystem (ie it has to match exactly)

pull/4420/head
Toshio Kuratomi 2016-03-03 20:56:50 -08:00
parent 253376b3b7
commit 8f1303c81a
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class ActionModule(ActionBase):
source_files = []
# If source is a directory populate our list else source is a file and translate it to a tuple.
if os.path.isdir(to_bytes(source)):
if os.path.isdir(to_bytes(source, errors='strict')):
# Get the amount of spaces to remove to get the relative path.
if source_trailing_slash:
sz = len(source)