Finds the instances of an executable in the system path.

Static variables

@:value(Sys.systemName() == "Windows" || ["cygwin", "msys"].contains(Sys.getEnv("OSTYPE")))staticfinalread onlyisWindows:Bool = Sys.systemName() == "Windows" || ["cygwin", "msys"].contains(Sys.getEnv("OSTYPE"))

Value indicating whether the current platform is Windows.

Constructor

@:ignoreInstrumentnew(?options:Null<FinderOptions>)

Creates a new finder.

Variables

finalextensions:Array<String>

The list of executable file extensions.

finalpaths:Array<String>

The list of system paths.

Methods

find(command:String):RealStream<String>

Finds the instances of the specified command in the system path.

isExecutable(file:String):Promise<Bool>

Gets a value indicating whether the specified file is executable.