1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

fixes #12055
This commit is contained in:
Brian Coca 2015-08-24 21:06:42 -04:00
parent 6e107d2f22
commit 17060f9849

View file

@ -97,7 +97,7 @@ class ActionModule(ActionBase):
if os.path.isdir(source):
# Get the amount of spaces to remove to get the relative path.
if source_trailing_slash:
sz = len(source) + 1
sz = len(source)
else:
sz = len(source.rsplit('/', 1)[0]) + 1