Update deprecated uses of Zotero.getZoteroDirectory()/getZoteroDatabase()
The Zotero.DataDirectory equivalents return string paths instead of nsIFile instances, so some of these calls now just use Zotero.File.pathToFile(), which can be removed when the surrounding code is updated to OS.File,
This commit is contained in:
parent
4c0abb6816
commit
5a6f1eef63
16 changed files with 88 additions and 101 deletions
|
@ -157,7 +157,7 @@ describe("Zotero.Sync.Storage.Local", function () {
|
|||
yield OS.File.makeDir(
|
||||
OS.Path.join(dir, 'subdir'),
|
||||
{
|
||||
from: Zotero.getZoteroDirectory().path,
|
||||
from: Zotero.DataDirectory.dir,
|
||||
unixMode: 0o755
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue