filter

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package filter filters files based on specific criteria

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

func New

func New(on, before, after, glob, pattern, unglob, unpattern string, filesonly, dirsonly, ignorehidden bool, minsize, maxsize string, mode fs.FileMode, names ...string) (*Filter, error)

func (*Filter) AddFileName

func (f *Filter) AddFileName(filename string)

func (*Filter) AddFileNames

func (f *Filter) AddFileNames(filenames ...string)

func (*Filter) After

func (f *Filter) After() time.Time

func (*Filter) Before

func (f *Filter) Before() time.Time

func (*Filter) Blank

func (f *Filter) Blank() bool

func (*Filter) DirsOnly

func (f *Filter) DirsOnly() bool

func (*Filter) FileNames

func (f *Filter) FileNames() []string

func (*Filter) FilesOnly

func (f *Filter) FilesOnly() bool

func (*Filter) Glob

func (f *Filter) Glob() string

func (*Filter) IgnoreHidden

func (f *Filter) IgnoreHidden() bool

func (*Filter) Match

func (f *Filter) Match(info fs.FileInfo) bool

func (*Filter) MaxSize

func (f *Filter) MaxSize() int64

func (*Filter) MinSize

func (f *Filter) MinSize() int64

func (*Filter) Mode

func (f *Filter) Mode() fs.FileMode

func (*Filter) On

func (f *Filter) On() time.Time

func (*Filter) Pattern

func (f *Filter) Pattern() string

func (*Filter) SetPattern

func (f *Filter) SetPattern(pattern string) error

func (*Filter) SetUnPattern

func (f *Filter) SetUnPattern(unpattern string) error

func (*Filter) String

func (f *Filter) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL