Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
findClosestFileSatisfying Source #
:: MonadIO m | |
=> (FilePath -> Bool) | The predicate that determines what we are looking for |
-> FilePath | Path to the starting point for the search |
-> m (Maybe FilePath) | Absolute path to the found file if available |
Find the path to the closest file higher in the file hierarchy that satisfies a given predicate.