ATLAS Offline Software
|
Assuming that a path-like environment variable is defined and filled in with the possible prioritized locations where a category of files is to be looked for, this utility will locate any file of that category from those possible locations.
The following properties are implemented:
a directory offset can be specified. In this case, the file search will detect files either right in every search path or in the offset directory in every search path.
the effective physical location of the file is returned, possibly with symbolic link resolution
it is possible to locate regular files or directories
the search can be local in every search path or recursive to all subdirectories below every serach path.
it is possible to simply verify a search path against non existing entries
Search paths can be specified either by giving the name of a path-like environment variable or by a text string containing the path list. In both cases the list follows the specific syntax convention of the operating system (ie ':' on Unix systems and ';' on DOS ones).
One needs to add to the requirements file the following use statement:
Finding a data file from the DATAPATH search list:
Recursively finding a data file from the DATAPATH search list:
Finding a data file from an explicit search list:
Finding a directory from the DATAPATH search list: