Skip to main content

validate_key

Function validate_key 

Source
pub fn validate_key(key: &str) -> StorageResult<()>
Expand description

Validates that a storage key is safe (no path traversal).

ยงErrors

Returns FileError::Storage if the key is empty, contains .., or starts with / or \.