1
0

Oh, with ioutil.ReadDir subtracting of 4096 isn't needed.

This commit is contained in:
Alexander Andreev 2023-05-26 22:41:48 +04:00
parent 9a889e746a
commit 114d3cc931
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -38,6 +38,5 @@ func DirectorySize(path string) (dirSz int64, err error) {
dirSz += entry.Size()
}
// Here we subtract a size of a directory's inode to get size of files only.
return dirSz - 4096, nil
return dirSz, nil
}