solana_runtime::snapshot_utils

Function move_and_async_delete_path_contents

source
pub fn move_and_async_delete_path_contents(path: impl AsRef<Path>)
Expand description

Moves and asynchronously deletes the contents of a directory to avoid blocking on it. The directory is re-created after the move, and should now be empty.