Skip to main content

validate_snapshot_uri

Function validate_snapshot_uri 

Source
pub fn validate_snapshot_uri(uri: &str) -> Result<StorageScheme>
Expand description

Validates a URI for snapshot-scoped destructive operations.

Unlike read-only parent scans, destructive commands must target a concrete snapshot directory instead of a bucket/container root or filesystem root. Remote storage buckets/containers already provide namespace isolation, so a non-empty object prefix is enough; local filesystem paths require at least two non-root path segments to avoid deleting broad system directories.