file_check_regular
Checks if a file exists and is a regular file.
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
path | File name (absolute path on the target node). This parameter is required. |
Example
method: file_check_regular
params:
path: VALUE
Documentation
This bundle will define a condition file_check_regular_${path}_{ok, reached, kept}
if the
file is a regular_file, or file_check_regular_${path}_{not_ok, reached, not_kept, failed}
if
the file is not a regular file or does not exist