mirror of https://github.com/ansible/ansible.git
parent
7c4d5f5099
commit
6e949d8f5d
@ -0,0 +1,24 @@
|
||||
DOCUMENTATION:
|
||||
name: normpath
|
||||
author: Shivam Durgbuns
|
||||
version_added: "2.15"
|
||||
short_description: Normalize a pathname
|
||||
description:
|
||||
- Returns the normalized pathname by collapsing redundant separators and up-level references
|
||||
options:
|
||||
_input:
|
||||
description: A path
|
||||
type: path
|
||||
required: true
|
||||
seealso:
|
||||
- plugin: ansible.builtin.basename
|
||||
plugin_type: filter
|
||||
EXAMPLES: |
|
||||
|
||||
# To get a normalized path(ex. '/foo/bar') from the path(ex. '/foo//bar')
|
||||
{{ path | normpath }}
|
||||
|
||||
RETURN:
|
||||
_value:
|
||||
description: The normalized path from the path given.
|
||||
type: path
|
Loading…
Reference in New Issue