mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 14:01:42 -07:00
Fixes/notes related to slashes in remote paths.
This commit is contained in:
parent
4991c77479
commit
21ba529fbe
6 changed files with 16 additions and 9 deletions
|
@ -33,6 +33,9 @@ class ShellModule(object):
|
|||
def join_path(self, *args):
|
||||
return os.path.join(*args)
|
||||
|
||||
def path_has_trailing_slash(self, path):
|
||||
return path.endswith('/')
|
||||
|
||||
def chmod(self, mode, path):
|
||||
path = pipes.quote(path)
|
||||
return 'chmod %s %s' % (mode, path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue