Operator Reference
file_exists (Operator)
file_exists
— Check whether file exists.
Signature
file_exists( : : FileName : FileExists)
Description
The operator file_exists
checks whether the
indicated file already exists. If this is the case, the parameter
FileExists
is set to TRUE, otherwise to FALSE.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
FileName
(input_control) filename →
(string)
Name of file to be checked.
Default: '/bin/cc'
FileExists
(output_control) integer →
(integer)
Boolean number.
Result
If the parameters are correct the operator file_exists
returns
the value 2 (
H_MSG_TRUE)
. Otherwise, an exception is raised.
Possible Successors
Alternatives
Module
Foundation