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.
This commit is contained in:
Tom Najdek 2022-07-06 22:20:15 +02:00 committed by Dan Stillman
parent 5f6d6da154
commit 4b86c2a3fd

View file

@ -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);