allfiles

package
v0.0.0-...-62cbee7 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path string
	Name string
	Size int
}

func (*File) Ext

func (aff *File) Ext() string

func (*File) FilePath

func (aff *File) FilePath() string

func (*File) HumanSize

func (aff *File) HumanSize() string

type Parser

type Parser struct {
	FilePath string

	MinSize int
	MaxSize int
	// contains filtered or unexported fields
}

func NewAllFiles

func NewAllFiles(filePath string) *Parser

func (*Parser) ExcludeExts

func (afp *Parser) ExcludeExts(exts ...string)

func (*Parser) ExcludePaths

func (afp *Parser) ExcludePaths(paths ...string)

func (*Parser) ExcludeTypes

func (afp *Parser) ExcludeTypes(types ...string)

func (*Parser) IncludeExts

func (afp *Parser) IncludeExts(exts ...string)

func (*Parser) IncludePaths

func (afp *Parser) IncludePaths(paths ...string)

func (*Parser) IncludeTypes

func (afp *Parser) IncludeTypes(types ...string)

func (*Parser) SetMaxSize

func (afp *Parser) SetMaxSize(size string)

func (*Parser) SetMinSize

func (afp *Parser) SetMinSize(size string)

func (*Parser) Start

func (afp *Parser) Start() (chan *File, error)

Jump to

Keyboard shortcuts

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