FileName.searchPath

Search paths for file.

struct FileName
extern (C++) nothrow static
const(char)*
searchPath
(
Strings* path
,
const(char)* name
,
bool cwd
)

Parameters

path Strings*

array of path strings

name const(char)*

file to look for

cwd bool

true means search current directory before searching path

Return Value

Type: const(char)*

if found, filename combined with path, otherwise null

Meta