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