X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fdir.h;fp=source%2Ffs%2Fdir.h;h=d62df8cde781896d30fc64a1f99091fa22c3fcef;hp=6bd760ced68be0ea6bdd57934d2cce925a32e70d;hb=60260b5701bab73f8de093147de03947c7f264c8;hpb=ce0b610396aa8f760462fa4d7a6bb207a43994d2 diff --git a/source/fs/dir.h b/source/fs/dir.h index 6bd760c..d62df8c 100644 --- a/source/fs/dir.h +++ b/source/fs/dir.h @@ -63,6 +63,13 @@ Path get_sys_lib_dir(); /// Changes the current working directory void chdir(const Path &); +/** Looks for a file in a list of paths. Returns the absolute path to the +first existing location, or an empty Path if the file is not found at all. */ +Path path_lookup(const std::string &, const std::list &); + +/** Looks for a file using the PATH environment variable. */ +Path path_lookup(const std::string &); + } // namespace FS } // namespace Msp