Skip to content

find_in_parent

Source

Hook to find the absolute path to a file or directory in parent directories.

Inputs

Name Type Default Required Description
target str True The name of the file to find the absolute path to
fallback Any None False String to fallback on if the target is not found.
starting_dir str . True The starting directory to search from. Defaults to current working directory.

Arguments

Position Argument Type
1 target str

Returns

str