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

pull/15204/head
Toshio Kuratomi 9 years ago committed by James Cammarata
parent f07ff69bd3
commit e562fe608f

@ -107,7 +107,7 @@ class ActionModule(ActionBase):
source_files = [] source_files = []
# If source is a directory populate our list else source is a file and translate it to a tuple. # 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. # Get the amount of spaces to remove to get the relative path.
if source_trailing_slash: if source_trailing_slash:
sz = len(source) sz = len(source)

Loading…
Cancel
Save