pub fn locate_file(dir: &Path, name: &str) -> Result<PathBuf, String>
As resolve, without the executable check: the file name names, for reading it (eclipse scripts cat) rather than running it.
resolve
name
eclipse scripts cat