Get the first fulfilled promise that satisfies the provided testing function
Resolve a path according to a predicate function by walking parent directories.