Function: findFileInClosestParentFolder

findFileInClosestParentFolder(tree, path, fileName): string | null

Find a file in the closest parent folder.

Parameters

NameTypeDescription
treeTree
pathstringThe path relative to the workspace root to start searching from.
fileNamestringThe name of the file to search for.

Returns

string | null