diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js index dfd2ba75c..1298d3a3a 100644 --- a/chrome/content/zotero/xpcom/file.js +++ b/chrome/content/zotero/xpcom/file.js @@ -746,6 +746,7 @@ Zotero.File = new function(){ return; } + Zotero.debug("Adding ZIP entry " + entry.path); zipWriter.addEntryFile( // Add relative path entry.path.substr(rootPath.length + 1), diff --git a/test/tests/fileTest.js b/test/tests/fileTest.js index 65db2c54d..98f67bdd4 100644 --- a/test/tests/fileTest.js +++ b/test/tests/fileTest.js @@ -71,7 +71,15 @@ describe("Zotero.File", function () { }) describe("#zipDirectory()", function () { + afterEach(function () { + Zotero.Prefs.set('debug.log', false); + Zotero.Debug.init(); + }); + it("should compress a directory recursively", function* () { + Zotero.Prefs.set('debug.log', true); + Zotero.Debug.init(); + var tmpPath = Zotero.getTempDirectory().path; var path = OS.Path.join(tmpPath, Zotero.Utilities.randomString()); yield OS.File.makeDir(path);