mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +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.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)
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user