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

This commit is contained in:
Jakob Borg 2014-09-20 22:06:48 +02:00
parent 80a2a934dd
commit 0fcc25d7c9

View File

@ -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