Commit 17060f98 by Brian Coca

remove +1 from size that was cutting off first char of copied files when a recursive dir

fixes #12055
parent 6e107d2f
...@@ -97,7 +97,7 @@ class ActionModule(ActionBase): ...@@ -97,7 +97,7 @@ class ActionModule(ActionBase):
if os.path.isdir(source): if os.path.isdir(source):
# 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) + 1 sz = len(source)
else: else:
sz = len(source.rsplit('/', 1)[0]) + 1 sz = len(source.rsplit('/', 1)[0]) + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment