Function tokio_uring::fs::remove_file

source ·
pub async fn remove_file<P: AsRef<Path>>(path: P) -> Result<()>
Expand description

Removes a File

Examples

use tokio_uring::fs::remove_file;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    tokio_uring::start(async {
        remove_file("/some/file.txt").await?;
        Ok::<(), std::io::Error>(())
    })?;
    Ok(())
}