mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
This commit is contained in:
parent
bff1a5f5e4
commit
abd363e8bb
@ -326,7 +326,17 @@ func (f *sendReceiveFolder) processNeeded(dbUpdateChan chan<- dbUpdateJob, copyC
|
|||||||
changed++
|
changed++
|
||||||
|
|
||||||
case runtime.GOOS == "windows" && fs.WindowsInvalidFilename(file.Name):
|
case runtime.GOOS == "windows" && fs.WindowsInvalidFilename(file.Name):
|
||||||
|
if file.IsDeleted() {
|
||||||
|
// 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.
|
||||||
|
dbUpdateChan <- dbUpdateJob{file, dbUpdateDeleteFile}
|
||||||
|
changed++
|
||||||
|
} else {
|
||||||
|
// We can't pull an invalid file.
|
||||||
f.newPullError(file.Name, fs.ErrInvalidFilename)
|
f.newPullError(file.Name, fs.ErrInvalidFilename)
|
||||||
|
}
|
||||||
|
|
||||||
case file.IsDeleted():
|
case file.IsDeleted():
|
||||||
if file.IsDirectory() {
|
if file.IsDirectory() {
|
||||||
|
Loading…
Reference in New Issue
Block a user