Documentation ¶
Overview ¶
Package dirsource implements the file.Source interface for filesystem directories.
It is only appropriate for using in tests and demo mode at this time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirSource ¶
type DirSource struct {
// contains filtered or unexported fields
}
DirSource implements the file.Source interface using a filesystem directory.
Caveats: Currently only walks the directory and emits a file.File for each file found. It does not watch the directory for changes. It also uses modified time in place of created time. This implementation is only useful for tests and demo mode.
Click to show internal directories.
Click to hide internal directories.