Commit 0fcc25d7 authored by Jakob Borg's avatar Jakob Borg

Error handler in staggered Walk() (fixes #718)

parent 80a2a934
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment