|
|
|
@ -4,10 +4,10 @@ DOCUMENTATION:
|
|
|
|
|
version_added: "2.15"
|
|
|
|
|
short_description: Normalize a pathname
|
|
|
|
|
description:
|
|
|
|
|
- Returns the normalized pathname by collapsing redundant separators and up-level references
|
|
|
|
|
- Returns the normalized pathname by collapsing redundant separators and up-level references.
|
|
|
|
|
options:
|
|
|
|
|
_input:
|
|
|
|
|
description: A path
|
|
|
|
|
description: A path.
|
|
|
|
|
type: path
|
|
|
|
|
required: true
|
|
|
|
|
seealso:
|
|
|
|
@ -15,10 +15,10 @@ DOCUMENTATION:
|
|
|
|
|
plugin_type: filter
|
|
|
|
|
EXAMPLES: |
|
|
|
|
|
|
|
|
|
|
# To get a normalized path(ex. '/foo/bar') from the path(ex. '/foo//bar')
|
|
|
|
|
# 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
|
|
|
|
|
type: path
|
|
|
|
|