mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Removing a nonexistent file is success
This commit is contained in:
parent
3ca8dce98b
commit
da3177dbe0
@ -526,7 +526,7 @@ func (p *puller) handleEmptyBlock(b bqBlock) {
|
|||||||
}
|
}
|
||||||
os.Remove(of.temp)
|
os.Remove(of.temp)
|
||||||
os.Chmod(of.filepath, 0666)
|
os.Chmod(of.filepath, 0666)
|
||||||
if os.Remove(of.filepath) == nil {
|
if err := os.Remove(of.filepath); err == nil || os.IsNotExist(err) {
|
||||||
p.model.updateLocal(p.repo, f)
|
p.model.updateLocal(p.repo, f)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user