Function find_exe

Source
pub(crate) fn find_exe(name: &str, dir: &str) -> Option<PathBuf>
Expand description

Locate a helper executable: dir (when set), then next to our exe (and an ffmpeg subfolder), then PATH. Shared with media::ytdlp — not cached, so callers must not run it every frame.