pub fn stack_keep(config: &Config, num: NonZeroU32) -> Result<()>Expand description
Remove all but the top items on the stack
ยงErrors
- Return
PathError::FilenameMissingif thefilehas no filename. - Return
PathError::InvalidPathif the path part offileis not a valid path.