This commit is contained in:
Igor Katson 2023-11-25 17:13:17 +00:00
parent d8fdb94305
commit e3a3f71064
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 11 additions and 2 deletions

View file

@ -58,7 +58,10 @@ impl TorrentStateInitializing {
.create(true)
.read(true)
.write(true)
.open(&full_path)?
.open(&full_path)
.with_context(|| {
format!("error opening {full_path:?} in read/write mode")
})?
} else {
// TODO: create_new does not seem to work with read(true), so calling this twice.
OpenOptions::new()