add min and max size filters
parsed by humanize
This commit is contained in:
parent
75370f719a
commit
a5654af0ff
5 changed files with 213 additions and 132 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue