solana_runtime::snapshot_utils

Function remove_tmp_snapshot_archives

Source
pub fn remove_tmp_snapshot_archives(snapshot_archives_dir: impl AsRef<Path>)
Expand description

If the validator halts in the middle of archive_snapshot_package(), the temporary staging directory won’t be cleaned up. Call this function to clean them up.