Skip to main content

parse_trashed_name

Function parse_trashed_name 

Source
pub fn parse_trashed_name(name: &str) -> Option<TrashedName>
Expand description

Decode a single filename per AOSP PATTERN_EXPIRES_FILE. Returns None for any name that is not a well-formed .trashed-/.pending- token (including a plain, non-trashed filename) — the caller decides whether a None that still carries a trashed/pending prefix is a malformed-token anomaly.