This API searches a list of directories for a given file. The first directory in the list containing a file of the given name is returned.
- Name (String) - File name to search for.
- Directory List (Array/optional) – The list of directories to search. If not specified, the pathlist value from the configuration file is used.
A String containing the name of the directory where the file was found.
An Error instance will be thrown if the file is not found.