Use OS.File.writeAtomic without tmpPath to avoid #2210
This commit is contained in:
parent
47d4949b2a
commit
1f634f9e31
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ class ReaderInstance {
|
|||
await Zotero.Attachments.createDirectoryForItem(item);
|
||||
}
|
||||
file.append(this.pdfStateFileName);
|
||||
await Zotero.File.putContentsAsync(file, JSON.stringify(state));
|
||||
await OS.File.writeAtomic(file.path, JSON.stringify(state));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue