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".
This commit is contained in:
parent
c1a9735081
commit
da9537c5e4
1 changed files with 1 additions and 0 deletions
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue