Fix "filename too long" sync error for missing files on OS X/Linux
This commit is contained in:
parent
a97e27a9f2
commit
6a687e8c40
1 changed files with 3 additions and 1 deletions
|
@ -1078,7 +1078,9 @@ Zotero.Sync.Storage = new function () {
|
|||
// This can happen if a path is too long on Windows,
|
||||
// e.g. a file is being accessed on a VM through a share
|
||||
// (and probably in other cases).
|
||||
|| (e.winLastError && e.winLastError == 3))) {
|
||||
|| (e.winLastError && e.winLastError == 3)
|
||||
// Handle long filenames on OS X/Linux
|
||||
|| (e.unixErrno && e.unixErrno == 63))) {
|
||||
Zotero.debug("Marking attachment " + lk + " as missing");
|
||||
updatedStates[item.id] = Zotero.Sync.Storage.SYNC_STATE_TO_DOWNLOAD;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue