locate-path
Get the first path that exists on disk of multiple paths
is-dotfile
Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.
find-up-path
Find the path of the first file matching a given name, walking the filesystem upwards.
walk-back
Walk up the directory tree until the specified path is found.