fileindex

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFilter

type FileFilter struct {
	Extension string
	Directory string
}

type FileFilterOpt

type FileFilterOpt func(*FileFilter)

func FilterByDir

func FilterByDir(dir string) FileFilterOpt

func FilterByExt

func FilterByExt(ext string) FileFilterOpt

type FileIndex

type FileIndex interface {
	RootDir() string
	LastScanComplete() time.Time
	Paths(filterOpts ...FileFilterOpt) []string
	PathDirs() []string
	PathExts() []string

	Scan() error
}

func New

func New(rootDir string) FileIndex

Directories

Path Synopsis
Package mock_fileindex is a generated GoMock package.
Package mock_fileindex is a generated GoMock package.

Jump to

Keyboard shortcuts

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