This commit is contained in:
memo@mittelmeer 2018-10-17 21:33:06 +02:00
parent 28ba10b877
commit abdf7762bc

View file

@ -526,7 +526,8 @@ def main():
)
# Special handling for recursive copy - create intermediate dirs
if _original_basename and dest.endswith(os.sep):
if dest.endswith(os.sep):
if _original_basename:
dest = os.path.join(dest, _original_basename)
b_dest = to_bytes(dest, errors='surrogate_or_strict')
dirname = os.path.dirname(dest)