create

Function create 

Source
pub async fn create(path: impl AsRef<Path>) -> Result<File>
Expand description

Create a file for writing, truncating if it exists.

Returns a tokio::fs::File which can be used with the UringFile trait or tokio’s async methods.