Skip to main content

prune

Function prune 

Source
pub fn prune(
    sessions_dir: &Path,
    older_than: Duration,
    policy: PrunePolicy,
) -> Result<Vec<PathBuf>>
Expand description

Walk sessions_dir, delete .db files for auto sessions whose mtime is older than older_than. Returns the list of deleted paths. User-promoted sessions are never touched under PrunePolicy::AutoOnly.