Navigation
Synopsis Check whether a given location exists.
Function bool exists(loc file)
Usage import IO;
Description Check whether a certain location exists, i.e., whether an actual file is associated with it.
Examples
rascal>import IO;
ok
Does the library file IO.rsc exist?
rascal>exists(|std:///IO.rsc|);
bool: true
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.