Subtract a size of directory's inode itself.
This commit is contained in:
parent
d3abf5514d
commit
c9aa7e3715
@ -43,5 +43,5 @@ func DirectorySize(path string) (dirSz int64, err error) {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
return dirSz, nil
|
||||
return dirSz - 4096, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user