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()
|
let mut tmp_manifest_file = std::fs::OpenOptions::new()
|
||||||
.write(true)
|
.write(true)
|
||||||
.create(true)
|
.create(true)
|
||||||
|
.truncate(true)
|
||||||
.read(true)
|
.read(true)
|
||||||
.open(&filename)?;
|
.open(&filename)?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user