Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseFilter ¶
Types ¶
type FSSource ¶
FSSource is a BFS source for traversing filesystem
func NewFSSource ¶
func NewFSSource() *FSSource
func (*FSSource) SeedFromElements ¶
type FSTraverser ¶
type FSTraverser struct { MaxDepth int MinDepth int // Selection filter, determines which paths are and aren't traversed SelFilter func(*Element) bool // Result filter, determines which elments are and aren't included in result ResFilter func(*Element) bool FSW *FSWorker Src *FSSource common.Logger }
func GetDefault ¶
func GetDefault() *FSTraverser
func NewFSTraverser ¶
func NewFSTraverser() *FSTraverser
func (*FSTraverser) Init ¶
func (t *FSTraverser) Init()
func (*FSTraverser) Traverse ¶
func (tr *FSTraverser) Traverse(src SourceIter[*Element, string]) (res []*Element)
type FSWorker ¶
type FSWorker struct { Sort SortBy Hide bool Archives bool // Format directory paths to end with "/". Used for internal logic, turning it // off will remove file|directory selection functionality WebStyle bool common.Logger }
func NewFSWorker ¶
func NewFSWorker() *FSWorker
type SourceIter ¶
type Traverser ¶
type Traverser[T, S any] interface { Traverse(SourceIter[T, S]) []T }
Click to show internal directories.
Click to hide internal directories.