Navigation

Operators and Keywords

Function List:

C++ API

: dir_in_loadpath (dir)
: dir_in_loadpath (dir, "all")

Return the full name of the path element matching dir.

The match is performed at the end of each path element. For example, if dir is "foo/bar", it matches the path element "/some/dir/foo/bar", but not "/some/dir/foo/bar/baz" "/some/dir/allfoo/bar".

If the optional second argument is supplied, return a cell array containing all name matches rather than just the first.

See also: file_in_path, file_in_loadpath, path.

Package: octave