Skip to main content

parse_put_back

Function parse_put_back 

Source
pub fn parse_put_back(data: &[u8]) -> Result<Vec<PutBack>, DsStoreError>
Expand description

Parse the raw bytes of a Trash .DS_Store file and return every put-back record it carries, sorted by trash_name.

§Errors

Returns DsStoreError when the header magic is wrong, the allocator/B-tree is truncated or inconsistent, or a record carries an undefined data-type code. Never panics on hostile input.