www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 3587bb0f6b9f5fb97a0ba776964c29b1fdb0db97
parent 51dd281e81d8d8a9338c2915e8dc7288b70dad69
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 29 Apr 2015 17:06:23 -0400

Fix error if a synced filename begins with a dot (".pdf")

Diffstat:
Mchrome/content/zotero/xpcom/storage.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js @@ -1615,7 +1615,7 @@ Zotero.Sync.Storage = new function () { var fileName = entryName; } - if (fileName.indexOf('.') == 0) { + if (fileName.startsWith('.zotero')) { Zotero.debug("Skipping " + fileName); continue; } @@ -1760,7 +1760,7 @@ Zotero.Sync.Storage = new function () { var filesToDelete = []; var file; while (file = otherFiles.nextFile) { - if (file.leafName[0] == '.') { + if (file.leafName.startsWith('.zotero')) { continue; } @@ -1861,7 +1861,7 @@ Zotero.Sync.Storage = new function () { continue; } var fileName = file.getRelativeDescriptor(rootDir); - if (fileName.indexOf('.') == 0) { + if (fileName.startsWith('.zotero')) { Zotero.debug('Skipping file ' + fileName); continue; }