Removes a directory and all its contents recursively.
(path: &Path)
| 109 | |
| 110 | /// Removes a directory and all its contents recursively. |
| 111 | pub async fn remove_dir(path: &Path) -> Result<()> { |
| 112 | tokio::fs::remove_dir_all(path).await?; |
| 113 | Ok(()) |
| 114 | } |
| 115 | |
| 116 | /// Removes a file. |
| 117 | pub async fn remove_file(path: &Path) -> Result<()> { |
no outgoing calls