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
parent f650f95081
commit 7b6e19435b
No known key found for this signature in database
GPG key ID: EEC61A7B4C667D77

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