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 | |
currentFolder | string | The current folder to search in. |
fileName | string | The file name to search for. |