Function lazy_badger::find_script
source · pub fn find_script(
root: &Path,
name: String,
) -> Result<Option<PathBuf>, FindScriptError>Expand description
Finds a script from its name and the root directory
Returns the path to the script if found
§Errors
- Error reading any sub-directory;
- Passed-in path is not a directory;
- More than one script was found;