pub fn validate_path_name(path: String) -> Result<bool, ContractError>