Skip to main content

path_for

Function path_for 

Source
pub fn path_for(target: &Utf8Path) -> Result<Utf8PathBuf, AppError>
Expand description

The lock one target takes, keyed by where it is.

A digest rather than the path itself: a lock file named after a repository would put a person’s directory layout in the state root, and two targets whose paths differ only in case would collide.

§Errors

AppError::Usage when no state root resolves.