This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/os.pathsearch.md
2021-03-12 22:10:24 +01:00

611 B

Searches a collection of paths for a particular file.

p = os.pathsearch("fname", "path1", ...)

Parameters

fname is the name of the file being searched. This is followed by one or more path sets to be searched.

Path sets match the format of the PATH environment variable: a colon-delimited list of paths. On Windows, you may use a semicolon-delimited list if drive letters might be included.

Return Value

The path to the directory which contains the file, if found. Otherwise, nil.

Availability

Premake 4.0 or later.

See Also