Navigation

Operators and Keywords

Function List:

C++ API

: file_in_loadpath (file)
: file_in_loadpath (file, "all")

Return the absolute name of file if it can be found in the list of directories specified by path.

If no file is found, return an empty character string.

If the first argument is a cell array of strings, search each directory of the loadpath for element of the cell array and return the first that matches.

If the second optional argument "all" is supplied, return a cell array containing the list of all files that have the same name in the path. If no files are found, return an empty cell array.

See also: file_in_path, dir_in_loadpath, path.

Package: octave