Documentation ¶
Overview ¶
Package filter filters files based on specific criteria
Index ¶
- type Filter
- func (f *Filter) AddFileName(filename string)
- func (f *Filter) AddFileNames(filenames ...string)
- func (f *Filter) After() time.Time
- func (f *Filter) Before() time.Time
- func (f *Filter) Blank() bool
- func (f *Filter) DirsOnly() bool
- func (f *Filter) FileNames() []string
- func (f *Filter) FilesOnly() bool
- func (f *Filter) Glob() string
- func (f *Filter) IgnoreHidden() bool
- func (f *Filter) Match(info fs.FileInfo) bool
- func (f *Filter) MaxSize() int64
- func (f *Filter) MinSize() int64
- func (f *Filter) Mode() fs.FileMode
- func (f *Filter) On() time.Time
- func (f *Filter) Pattern() string
- func (f *Filter) SetPattern(pattern string) error
- func (f *Filter) SetUnPattern(unpattern string) error
- func (f *Filter) String() string
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 (*Filter) AddFileName ¶
func (*Filter) AddFileNames ¶
func (*Filter) IgnoreHidden ¶
func (*Filter) SetPattern ¶
func (*Filter) SetUnPattern ¶
Click to show internal directories.
Click to hide internal directories.