mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
Fix file path encoding bugs on Python 3.
This commit is contained in:
parent
91eed74ac3
commit
56418cc274
3 changed files with 13 additions and 9 deletions
|
@ -576,7 +576,7 @@ def main():
|
|||
dest = to_native(b_dest, errors='surrogate_or_strict')
|
||||
if not force:
|
||||
module.exit_json(msg="file already exists", src=src, dest=dest, changed=False)
|
||||
if os.access(b_dest, os.R_OK) and os.path.isfile(dest):
|
||||
if os.access(b_dest, os.R_OK) and os.path.isfile(b_dest):
|
||||
checksum_dest = module.sha1(dest)
|
||||
else:
|
||||
if not os.path.exists(os.path.dirname(b_dest)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue