Add getTempDirectory (async) method to support.js

Returns a promise for a path to a new temporary directory
This commit is contained in:
Aurimas Vinckevicius 2015-04-26 01:31:03 -05:00
parent 2ebce91ecf
commit 409553da2e
2 changed files with 24 additions and 1 deletions

View file

@ -1,5 +1,4 @@
Components.utils.import("resource://gre/modules/osfile.jsm");
Components.utils.import("resource://zotero/q.js");
var EventUtils = Components.utils.import("resource://zotero-unit/EventUtils.jsm");
var ZoteroUnit = Components.classes["@mozilla.org/commandlinehandler/general-startup;1?type=zotero-unit"].