mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 18:41:59 -07:00
Removing a nonexistent file is OK (fixes #792)
This commit is contained in:
parent
289d604690
commit
d089436546
@ -384,7 +384,7 @@ func (p *Puller) deleteFile(file protocol.FileInfo) {
|
||||
err = osutil.InWritableDir(os.Remove, realName)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
if err != nil && !os.IsNotExist(err) {
|
||||
l.Infof("Puller (folder %q, file %q): delete: %v", p.folder, file.Name, err)
|
||||
} else {
|
||||
p.model.updateLocal(p.folder, file)
|
||||
|
Loading…
Reference in New Issue
Block a user