findExecutable

fun findExecutable(dir: File, exeName: String): File?

Finds an executable file recursively within a directory, matching exeName.

Return

The executable File, or null if not found.

Parameters

dir

The root directory to search.

exeName

The executable file name to find (e.g. "llama-server.exe").