add min and max size filters

parsed by humanize
This commit is contained in:
Lilian Jónsdóttir 2024-06-30 18:39:23 -07:00
parent 75370f719a
commit a5654af0ff
5 changed files with 213 additions and 132 deletions

View file

@ -89,7 +89,7 @@ func FindFiles(trashdir, ogdir string, f *filter.Filter) (files Infos, outerr er
return nil
}
if f.Match(filename, date, info.IsDir()) {
if f.Match(filename, date, info.Size(), info.IsDir()) {
log.Debugf("%s: deleted on %s", filename, date.Format(trash_info_date_fmt))
files = append(files, Info{
name: filename,