fx115: Update lots of OS.File/OS.Path uses

This commit is contained in:
Dan Stillman 2023-12-04 05:05:34 -05:00
parent 5a8a7ebccc
commit 920461cd9d
36 changed files with 233 additions and 300 deletions

View file

@ -373,12 +373,8 @@ describe("Zotero.Sync.Storage.Mode.WebDAV", function () {
Zotero.getTempDirectory().path,
Zotero.Utilities.randomString() + '.zip'
);
let file = yield OS.File.open(tmpZipPath, {
create: true
});
var contents = new Uint8Array(reader.result);
yield file.write(contents);
yield file.close();
let contents = new Uint8Array(reader.result);
yield IOUtils.write(tmpZipPath, contents);
// Make sure ZIP file contains the necessary entries
var zr = Components.classes["@mozilla.org/libjar/zip-reader;1"]