Documentation ¶
Index ¶
- type Local
- func (dir *Local) AddStandardIgnore()
- func (dir *Local) GetOpener() sts.Open
- func (dir *Local) IsNotExist(err error) bool
- func (dir *Local) Open(origFile sts.File) (sts.Readable, error)
- func (dir *Local) Remove(file sts.File) (err error)
- func (dir *Local) Scan(shouldAllow func(sts.File) bool) ([]sts.File, time.Time, error)
- func (dir *Local) Sync(origFile sts.File) (newFile sts.File, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct { Root string MinAge time.Duration IncludeHidden bool Include []*regexp.Regexp Ignore []*regexp.Regexp FollowSymlinks bool // contains filtered or unexported fields }
Local implements sts.FileStore for local files
func (*Local) AddStandardIgnore ¶
func (dir *Local) AddStandardIgnore()
AddStandardIgnore adds standard ignore patterns
func (*Local) IsNotExist ¶
IsNotExist returns whether or not an error returned by Sync or Open indicates the file in question does not exist
Click to show internal directories.
Click to hide internal directories.