From 7b6e19435b348fed4ffa2a6e854a9b00ea80fe79 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Wed, 6 Jul 2022 22:20:15 +0200 Subject: [PATCH] Don't try to remove temporary dir after import Previously we had a structure that also created folders in temp dir, that has since changed but code in cleanup phase to remove containing dir has been accidentally left unremoved. --- chrome/content/zotero/import/mendeley/mendeleyImport.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/chrome/content/zotero/import/mendeley/mendeleyImport.js b/chrome/content/zotero/import/mendeley/mendeleyImport.js index d8ff6303dd..eeb7a85d71 100644 --- a/chrome/content/zotero/import/mendeley/mendeleyImport.js +++ b/chrome/content/zotero/import/mendeley/mendeleyImport.js @@ -289,10 +289,8 @@ Zotero_Import_Mendeley.prototype.translate = async function (options = {}) { }; Zotero_Import_Mendeley.prototype._removeTemporaryFile = async function (file) { - const containingDir = OS.Path.dirname(file); try { await Zotero.File.removeIfExists(file); - await OS.File.removeEmptyDir(containingDir); } catch (e) { Zotero.logError(e);