Removes a file.
(path: &Path)
| 115 | |
| 116 | /// Removes a file. |
| 117 | pub async fn remove_file(path: &Path) -> Result<()> { |
| 118 | tokio::fs::remove_file(path).await?; |
| 119 | Ok(()) |
| 120 | } |
| 121 | |
| 122 | /// Copies a file from source to destination, preserving file permissions. |
| 123 | pub async fn copy_file(from: &Path, to: &Path) -> Result<()> { |
no outgoing calls