mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
fix #7244 recursive copy fails when setting directory attributes
- reverse the order of new_directory_list returned from split_pre_existing_dir in copy module
This commit is contained in:
parent
6069d5d4cf
commit
50080b3774
3 changed files with 24 additions and 2 deletions
|
@ -111,7 +111,7 @@ def split_pre_existing_dir(dirname):
|
|||
(pre_existing_dir, new_directory_list) = split_pre_existing_dir(head)
|
||||
else:
|
||||
return (head, [ tail ])
|
||||
new_directory_list.insert(0, tail)
|
||||
new_directory_list.append(tail)
|
||||
return (pre_existing_dir, new_directory_list)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue