Compare commits

..

2 commits

Author SHA1 Message Date
Lilian Jónsdóttir 1339d642dd version bump - v0.0.3
- add support for .Trash and .Trash-$(id -u) directories on non-home partitions
- add support for reading from and writing to $trashDir/directorysizes
2024-08-14 18:57:36 -07:00
Lilian Jónsdóttir 07424ecd36 add support for reading/writing $trashDir/directorysizes
- show total trash size in header
2024-08-14 18:53:25 -07:00

View file

@ -45,6 +45,8 @@ func (fls Files) TotalSize() int64 {
log.Debugf("%s: got %d from directorysizes", file.Name(), d.size) log.Debugf("%s: got %d from directorysizes", file.Name(), d.size)
size += d.size size += d.size
continue continue
} else {
size += calculateDirSize(file.Path())
} }
} }
size += file.Filesize() size += file.Filesize()