Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectoryNode ¶
type DirectoryNode struct { NodeBase // contains filtered or unexported fields }
A DirectoryNode is a directory in the virtual file system.
func NewDirectoryNode ¶
func NewDirectoryNode(fs FS, path string, name string) *DirectoryNode
NewDirectoryNode creates a new DirectoryNode with the specified path. The key of the DirectoryNode is set to the lowercase version of the path.
func (*DirectoryNode) Resolve ¶
func (dn *DirectoryNode) Resolve(name string) FsNode
func (*DirectoryNode) Sync ¶
func (dn *DirectoryNode) Sync(filterFn func(path string) bool) error
Sync synchronizes the DirectoryNode with the underlying filesystem. It scans the directory and updates the children nodes to reflect the current state of the filesystem. Any nodes that no longer exist in the filesystem are removed.
Click to show internal directories.
Click to hide internal directories.