solana_accounts_db::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.