src/client/pull.rs: open temporary manifest with truncate(true)

To delete any data if the file already exists.
This commit is contained in:
Dietmar Maurer 2020-09-21 13:53:35 +02:00
parent 3fade35260
commit 194da6f867

View File

@ -55,6 +55,7 @@ async fn download_manifest(
let mut tmp_manifest_file = std::fs::OpenOptions::new()
.write(true)
.create(true)
.truncate(true)
.read(true)
.open(&filename)?;