src/client/pull.rs: open temporary manifest with truncate(true)
To delete any data if the file already exists.
This commit is contained in:
parent
3fade35260
commit
194da6f867
@ -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)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user