diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js index 753e26c753..209e12e596 100644 --- a/chrome/content/zotero/xpcom/file.js +++ b/chrome/content/zotero/xpcom/file.js @@ -1347,27 +1347,17 @@ Zotero.File = new function(){ this.isCloudStorageFolder = function (path) { - return this.isDropboxDirectory(path) - || this.isGoogleDriveDirectory(path) - || this.isOneDriveDirectory(path); + // Dropbox + return path.toLowerCase().includes('dropbox') + // Google Drive + || path.includes('Google Drive') + // OneDrive + || path.toLowerCase().includes('onedrive') + // pCloud + || path.toLowerCase().includes('pcloud'); }; - this.isDropboxDirectory = function(path) { - return path.toLowerCase().includes('dropbox'); - } - - - this.isGoogleDriveDirectory = function(path) { - return path.includes('Google Drive'); - } - - - this.isOneDriveDirectory = function(path) { - return path.toLowerCase().includes('onedrive'); - } - - this.reveal = Zotero.Promise.coroutine(function* (file) { if (!(yield OS.File.exists(file))) { throw new Error(file + " does not exist");