isExecutable

Returns true iff name can be executed via the process function in std.process. By default, PATH will be searched if name does not contain directory separators.

version(Posix)
bool
isExecutable
(
scope string name
,
Flag!"searchPath" searchPath = Yes.searchPath
)

Parameters

name string

Path to file or name of executable

searchPath Flag!"searchPath"

Determines wether or not the path should be searched.

Meta