mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 14:48:30 +00:00
Error handler in staggered Walk() (fixes #718)
This commit is contained in:
parent
80a2a934dd
commit
0fcc25d7c9
@ -165,6 +165,9 @@ func (v Staggered) clean() {
|
||||
filesPerDir := make(map[string]int)
|
||||
|
||||
err = filepath.Walk(v.versionsPath, func(path string, f os.FileInfo, err error) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
switch mode := f.Mode(); {
|
||||
case mode.IsDir():
|
||||
filesPerDir[path] = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user