Documentation ¶
Index ¶
- type Dirent
- type FS
- func (fs *FS) Invalidate(path string)
- func (fs *FS) IsDir(path string) bool
- func (fs *FS) Memo(path string) (*Node, *mgutil.Memo, error)
- func (fs *FS) ReadDir(path string) ([]os.FileInfo, error)
- func (fs *FS) Scan(path string, so ScanOptions)
- func (fs *FS) Stat(path string) (*Node, os.FileInfo, error)
- type FileInfo
- type Node
- func (nd *Node) Branches(f func(nd *Node))
- func (nd *Node) Children() *NodeList
- func (nd *Node) Invalidate()
- func (nd *Node) IsBranch() bool
- func (nd *Node) IsDescendant(ancestor *Node) bool
- func (nd *Node) IsDir() bool
- func (nd *Node) IsLeaf() bool
- func (nd *Node) IsRoot() bool
- func (nd *Node) Locate(name string) (*Node, os.FileInfo, error)
- func (nd *Node) Ls() *NodeList
- func (nd *Node) Memo() (*mgutil.Memo, error)
- func (nd *Node) Name() string
- func (nd *Node) Parent() *Node
- func (nd *Node) Path() string
- func (nd *Node) Peek(path string) *Node
- func (nd *Node) Poke(path string) *Node
- func (nd *Node) Print(w io.Writer)
- func (nd *Node) PrintWithFilter(w io.Writer, filter func(*Node) string)
- func (nd *Node) ReadDir() ([]os.FileInfo, error)
- func (nd *Node) Stat() (os.FileInfo, error)
- func (nd *Node) String() string
- type NodeList
- func (n *NodeList) Add(nd *Node) *NodeList
- func (n *NodeList) Copy() *NodeList
- func (n *NodeList) Filter(f func(nd *Node) bool) *NodeList
- func (n *NodeList) Find(name string) (index int, c *Node)
- func (n *NodeList) Index(nd *Node) (index int)
- func (n *NodeList) Len() int
- func (n *NodeList) Node(name string) *Node
- func (n *NodeList) Nodes() []*Node
- func (n *NodeList) Some(f func(nd *Node) bool) bool
- func (n *NodeList) Sorted() *NodeList
- type ScanOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct{ Node }
func (*FS) Invalidate ¶
func (*FS) Scan ¶
func (fs *FS) Scan(path string, so ScanOptions)
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) Invalidate ¶
func (nd *Node) Invalidate()
func (*Node) IsDescendant ¶
func (*Node) PrintWithFilter ¶
Click to show internal directories.
Click to hide internal directories.