Removing a nonexistent file is OK (fixes #792)

This commit is contained in:
Jakob Borg 2014-10-06 21:47:42 +02:00
parent 289d604690
commit d089436546

View File

@ -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)