pub fn checked_dir( root: &Path, namespace: &str, claim: &str, claim_uid: &str, ) -> Result<PathBuf, String>