fix: cache status size calculation ()

This commit is contained in:
Mitsuo Heijo 2023-02-18 10:41:29 +09:00 committed by GitHub
parent e23ac00430
commit fe53ca0cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,7 +64,7 @@ func dirSizeBytes(path string) (int64, error) {
var size int64
err := filepath.Walk(path, func(_ string, info os.FileInfo, err error) error {
if err == nil && !info.IsDir() {
size = info.Size()
size += info.Size()
}
return err
})