mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 08:43:10 +00:00
switched to use python's built in os.separator vs using /
This commit is contained in:
@@ -240,7 +240,7 @@ def main():
|
||||
changed = False
|
||||
|
||||
# Special handling for recursive copy - create intermediate dirs
|
||||
if original_basename and dest.endswith("/"):
|
||||
if original_basename and dest.endswith(os.sep):
|
||||
dest = os.path.join(dest, original_basename)
|
||||
dirname = os.path.dirname(dest)
|
||||
if not os.path.exists(dirname) and os.path.isabs(dirname):
|
||||
|
||||
Reference in New Issue
Block a user