Skip to content

Commit

Permalink
lib/model: Don't error on pulling deletion of invalid file (fixes syn…
Browse files Browse the repository at this point in the history
  • Loading branch information
imsodin committed Jun 13, 2019
1 parent 34c0bc9 commit d28dae7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/model/folder_sendrecv.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,14 @@ func (f *sendReceiveFolder) processNeeded(dbUpdateChan chan<- dbUpdateJob, copyC
changed++

case runtime.GOOS == "windows" && fs.WindowsInvalidFilename(file.Name):
// Just pretend we deleted it, no reason to create an error
// about a deleted file that we can't have anyway.
// Reason we need it in the first place is, that it was
// ignored at some point.
if file.IsDeleted() {
dbUpdateChan <- dbUpdateJob{file, dbUpdateDeleteFile}
changed++
}
f.newPullError(file.Name, fs.ErrInvalidFilename)

case file.IsDeleted():
Expand Down

0 comments on commit d28dae7

Please sign in to comment.