Function solana_runtime::snapshot_utils::delete_contents_of_path
source · fn delete_contents_of_path(path: impl AsRef<Path> + Copy)
Expand description
Delete the files and subdirectories in a directory. This is useful if the process does not have permission to delete the top level directory it might be able to delete the contents of that directory.