Versions in this module Expand all Collapse all v0 v0.0.10 Apr 22, 2024 Changes in this version + func BaseFilter(el *Element) bool + func IsZipLike(path string) bool + type Element struct + Creation int64 + Mask uint32 + Mod int64 + Name string + Path string + Size int64 + type FSSource struct + Els []*Element + Parser Parser + Paths []string + func NewFSSource() *FSSource + func (s *FSSource) Iter() (res []*Element, curr string, ok bool) + func (s *FSSource) Seed(seeds []string) + func (s *FSSource) SeedFromElements(els []*Element) + type FSTraverser struct + FSW *FSWorker + MaxDepth int + MinDepth int + ResFilter func(*Element) bool + SelFilter func(*Element) bool + Src *FSSource + func GetDefault() *FSTraverser + func NewFSTraverser() *FSTraverser + func (t *FSTraverser) Init() + func (tr *FSTraverser) Traverse(src SourceIter[*Element, string]) (res []*Element) + type FSWorker struct + Archives bool + Hide bool + Sort SortBy + WebStyle bool + func NewFSWorker() *FSWorker + func (fsw *FSWorker) Dir(path string) (files []fs.FileInfo, err error) + func (fsw *FSWorker) Parse(path string) *Element + func (fsw *FSWorker) Parser() func(string) ([]*Element, error) + func (fsw *FSWorker) Zip(path string) (files []fs.FileInfo, err error) + type Parser func(string) (res []*Element, err error) + type SortBy uint8 + const ByCreation + const ByMod + const ByName + const ByNone + const BySize + type SourceIter interface + Iter func() (res []T, curr S, ok bool) + Seed func(seeds []S) + type Traverser interface + Traverse func(SourceIter[T, S]) []T v0.0.1 Apr 21, 2024