copy

Function copy 

Source
pub async fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64>
Expand description

Copy the contents of one file to another.

Creates the destination file if it doesn’t exist, truncates it if it does.