mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-11 02:36:17 +00:00
Check for error in directory walker (ref #308)
This commit is contained in:
parent
9bf13b253c
commit
f7a25adcbd
@ -220,6 +220,10 @@ func (p *puller) fixupDirectories() {
|
|||||||
var changed = 0
|
var changed = 0
|
||||||
|
|
||||||
var walkFn = func(path string, info os.FileInfo, err error) error {
|
var walkFn = func(path string, info os.FileInfo, err error) error {
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if !info.IsDir() {
|
if !info.IsDir() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user