FileName.searchPath

Search paths for file.

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

Parameters

path
Type: Strings*

array of path strings

name
Type: const(char)*

file to look for

cwd
Type: bool

true means search current directory before searching path

Return Value

Type: const(char)*

if found, filename combined with path, otherwise null

Meta