fileutils

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: GPL-3.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileChangeRecord

type FileChangeRecord struct {
	AllCached  mapset.Set     // all cached file
	FileFilter FileFilterFunc //  if cb return true  represents cb digest the file
	// contains filtered or unexported fields
}

this is an file system cache it can be used for listen changes of file in a specific dir

func NewFileChangeRecord

func NewFileChangeRecord(fileFilter FileFilterFunc) FileChangeRecord

func (*FileChangeRecord) RefreshCache

func (fc *FileChangeRecord) RefreshCache(keyDir string) (creates mapset.Set, deletes mapset.Set, updates mapset.Set, err error)

type FileFilterFunc

type FileFilterFunc func(dir string, file os.FileInfo) bool

Jump to

Keyboard shortcuts

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