Skip to main content

cwd_resources_dir_from

Function cwd_resources_dir_from 

Source
pub fn cwd_resources_dir_from(start: &Path) -> Option<PathBuf>
Expand description

Walk up from start looking for a .zig/resources directory. Stops at the containing git repository root (matching find_git_root’s discovery boundary), or returns the directory in start itself if it exists.

Returns None if no such directory is found before hitting the git root or the filesystem root.