findClosestFile
Finds the closest file in the given path.
Presentation
function findClosestFile (
tree: Tree,
currentFolder: string,
fileName: string,
): string | null;
Returns
string | null
-{string} The path to the closest file.
Parameters
Name | Type | Description |
---|---|---|
tree | Tree | @param tree |
currentFolder | string | @param {string} currentFolder The current folder to search in. |
fileName | string | @param {string} fileName The file name to search for. |