pub fn stack_keep(config: &Config, num: NonZeroU32) -> Result<()>
Expand description
Remove all but the top items on the stack
ยงErrors
- Return
PathError::FilenameMissing
if thefile
has no filename. - Return
PathError::InvalidPath
if the path part offile
is not a valid path.