NAME
Catmandu::Fix::Condition::file_exists - only execute fixes if the file exists
SYNOPSIS
# path => /var/log/apache/error.log
if file_exists(path)
add_field(error, "apache error!")
end
# inverted
# path => /var/log/apache/error.log
unless file_exists(path)
add_field(no_error, "no error!")
end
AUTHOR
Vitali Peil <vitali.peil@uni-bielefeld.de>
COPYRIGHT
Copyright 2018- Vitali Peil
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.