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:
parent
f650f95081
commit
7b6e19435b
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue