FileName.searchPath

Search paths for file.

  1. const(char)* searchPath(Strings* path, const(char)* name, bool cwd)
    struct FileName
    nothrow extern (C++) static
    const(char)*
    searchPath
    (,
    const(char)* name
    ,
    bool cwd
    )
  2. const(char)[] searchPath(Strings* path, const(char)[] name, bool cwd)
  3. const(char)[] searchPath(const(char)* 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