Skip to main content

validate_current_dir_root

Function validate_current_dir_root 

Source
pub fn validate_current_dir_root(cwd: &Path) -> Result<PathBuf, String>
Expand description

Validate the current directory cwd as the project root, for a run with no root argument.

This applies validate_root, and also checks the spelling of the current directory from the PWD variable, as validate_root_in does for a relative root.

ยงErrors

Returns a message as validate_root does.