Skip to main content

validate_docs_scratch_path

Function validate_docs_scratch_path 

Source
pub fn validate_docs_scratch_path(
    path: &Utf8Path,
) -> Result<(), DeclaredPathError>
Expand description

Whether a recorded docs-scratch path is one a reader can resolve.

The same check the argument runs. A record reaches a reinstall through a permissive read, so without this a hand-edited value is carried forward and only the post-write verification catches it.

ยงErrors

DeclaredPathError for a path that is empty or absolute.