文件操作 - normpath.yml
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3.12/site-packages/ansible/plugins/filter/normpath.yml
编辑文件内容
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 (for example - '/foo/bar') from the path (for example - '/foo//bar') {{ path | normpath }} RETURN: _value: description: The normalized path from the path given. type: path
修改文件时间
将文件时间修改为当前时间的前一年
删除文件