mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
Use to_bytes on filenames in filesystem calls.
This commit is contained in:
parent
27a33a6f18
commit
5b79ed77e7
6 changed files with 13 additions and 11 deletions
|
@ -118,7 +118,7 @@ class DataLoader():
|
|||
|
||||
def path_exists(self, path):
|
||||
path = self.path_dwim(path)
|
||||
return os.path.exists(to_bytes(path))
|
||||
return os.path.exists(to_bytes(path, errors='strict'))
|
||||
|
||||
def is_file(self, path):
|
||||
path = self.path_dwim(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue