mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Changed assemble_from_fragments to use os.path.join (#24909)
Fixes #19437
This commit is contained in:
parent
2e392f47c8
commit
f8e47e2204
2 changed files with 13 additions and 4 deletions
|
@ -142,7 +142,7 @@ def assemble_from_fragments(src_path, delimiter=None, compiled_regexp=None, igno
|
|||
for f in sorted(os.listdir(src_path)):
|
||||
if compiled_regexp and not compiled_regexp.search(f):
|
||||
continue
|
||||
fragment = u"%s/%s" % (src_path, f)
|
||||
fragment = os.path.join(src_path, f)
|
||||
if not os.path.isfile(fragment) or (ignore_hidden and os.path.basename(fragment).startswith('.')):
|
||||
continue
|
||||
fragment_content = open(fragment, 'rb').read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue