From da9537c5e4ed385a700e34f6d482ed7979839b01 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 2 Jul 2018 01:02:58 +0200 Subject: [PATCH] Mendeley import: Properly handle "Mendeley Ltd." folder with period At some point Mendeley seems to have changed the default path to the data directory on Windows to remove the period, and for people with the old directory we were linking rather than storing attachment files from "Downloaded". --- chrome/content/zotero/import/mendeley/mendeleyImport.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/import/mendeley/mendeleyImport.js b/chrome/content/zotero/import/mendeley/mendeleyImport.js index 661a04efc3..8dc6ca83bb 100644 --- a/chrome/content/zotero/import/mendeley/mendeleyImport.js +++ b/chrome/content/zotero/import/mendeley/mendeleyImport.js @@ -1049,6 +1049,7 @@ Zotero_Import_Mendeley.prototype._isDownloadedFile = function (path) { var parentDir = OS.Path.dirname(path); return parentDir.endsWith(OS.Path.join('Application Support', 'Mendeley Desktop', 'Downloaded')) || parentDir.endsWith(OS.Path.join('Local', 'Mendeley Ltd', 'Mendeley Desktop', 'Downloaded')) + || parentDir.endsWith(OS.Path.join('Local', 'Mendeley Ltd.', 'Mendeley Desktop', 'Downloaded')) || parentDir.endsWith(OS.Path.join('data', 'Mendeley Ltd.', 'Mendeley Desktop', 'Downloaded')); }