1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 06:42:27 +01:00

Allow exporting to a directory as well as an archive with dactyl.exportHelp.

This commit is contained in:
Kris Maglione
2010-12-02 19:18:32 -05:00
parent c8f18d8d62
commit becbd989e9
6 changed files with 45 additions and 32 deletions

View File

@@ -202,7 +202,7 @@ const IO = Module("io", {
let file = services.directory.get("TmpD", Ci.nsIFile);
file.append(config.tempFile);
file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, parseInt('0600', 8));
file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, octal(600));
Cc["@mozilla.org/uriloader/external-helper-app-service;1"]
.getService(Ci.nsPIExternalAppLauncher).deleteTemporaryFileOnExit(file);