From faf094f0aa573b8ec1d96aa2e74be3adf7aa4d18 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Thu, 20 May 2021 11:18:23 +0200 Subject: [PATCH] Mendeley import: shorten tmp file path --- chrome/content/zotero/import/mendeley/mendeleyImport.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/import/mendeley/mendeleyImport.js b/chrome/content/zotero/import/mendeley/mendeleyImport.js index b7448cfbd7..e9b3b9dfae 100644 --- a/chrome/content/zotero/import/mendeley/mendeleyImport.js +++ b/chrome/content/zotero/import/mendeley/mendeleyImport.js @@ -707,7 +707,7 @@ Zotero_Import_Mendeley.prototype._getDocumentFilesAPI = async function (document const files = []; for (let file of (doc.files || [])) { const fileName = file.file_name || 'file'; - const tmpFile = OS.Path.join(Zotero.getTempDirectory().path, `mendeley-online-import-${this.timestamp}-${file.id}`, fileName); + const tmpFile = OS.Path.join(Zotero.getTempDirectory().path, `m-api-${this.timestamp}-${file.id}`, fileName); this._tmpFilesToDelete.push(tmpFile); caller.add(this._fetchFile.bind(this, file.id, tmpFile)); files.push({ @@ -1468,7 +1468,7 @@ Zotero_Import_Mendeley.prototype._isDownloadedFile = function (path) { Zotero_Import_Mendeley.prototype._isTempDownloadedFile = function (path) { var parentDir = OS.Path.dirname(path); - return parentDir.startsWith(OS.Path.join(Zotero.getTempDirectory().path, 'mendeley-online-import')); + return parentDir.startsWith(OS.Path.join(Zotero.getTempDirectory().path, 'm-api')); }; /**