copy_file

Function copy_file 

Source
pub async fn copy_file<'a, C, E>(
    auth: &mut Authorization<C>,
    file: CopyFile<'_>,
) -> Result<File, Error<E>>
where C: HttpClient<Error = Error<E>>, E: Debug + Display,
Expand description

Copy an existing file to a new file, possibly on a different bucket.

The new file must be less than 5 GB. Use copy_file_part to copy larger files.

If copying from one bucket to another, both buckets must belong to the same account.