summaryrefslogtreecommitdiff
path: root/src/validators/file-exists
AgeCommit message (Collapse)Author
2020-05-06validator: T2417: try to make the code clearerThomas Mangin
2019-08-07Validator: add file-exists as replacement to Vyatta check_file_in_config_dirChristian Poessinger
Verify if a file exists or not on the system. Can be called by: <constraint> <validator name="file-exists" argument="--directory /config/auth"/> </constraint> The --directory option is used to ensure a given file path lies under this (mandatory) directory. A directory can be mandatory when the optional argument -e, --error is used. This will return '1' instead of '0'.