File module: Check file
Check if a given file exists.
Example
Check if a single file exists:
space -m file /fileexist/ -- "/home/user/temporary_files/some_file.txt"
Check if a list of files exist:
space -m file /fileexist/ -- "/home/user/temporary_files/some_file.txt" "/tmp/output.txt"
Exit status code is expected to be 0 when successfully found all files.
Edit this page