FileExists {RandomFields} | R Documentation |
The function FileExists
checks whether a file or a lock-file
exists
The function LockRemove
removes a lock-file
FileExists(file, PrintLevel=RFparameters()$Print) LockRemove(file)
file |
name of the data file |
PrintLevel |
if |
FileExists
checks whether file or file.lock exists.
If none of them exists file
.lock is created and hostname and
PID are written into file
.lock. This is useful if several processes
use the same directory. Further, it is checked whether another process
has tried to create the same file in the same instance. In this case
FileExists
returns for at least one of the processes that
file
.lock has already been created.
FileExists
returns
1 |
if |
2 |
if |
3 |
if |
0 |
otherwise, |
Martin Schlather, martin.schlather@math.uni-goettingen.de http://www.stochastik.math.uni-goettingen.de/~schlather