fixed #47050
This commit is contained in:
parent
28ba10b877
commit
abdf7762bc
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue