Documentation
¶
Index ¶
- type FileTreeIndex
- func (idx *FileTreeIndex) AddPath(pathname string) error
- func (idx *FileTreeIndex) DelPath(pathname string) error
- func (idx *FileTreeIndex) MovePath(pathname, dstParentPath string) error
- func (idx *FileTreeIndex) ReadFrom(pathname string) error
- func (idx *FileTreeIndex) RenamePath(pathname, newName string) error
- func (idx *FileTreeIndex) Search(keyword string) ([]string, error)
- func (idx *FileTreeIndex) WriteTo(pathname string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileTreeIndex ¶
type FileTreeIndex struct {
// contains filtered or unexported fields
}
func NewFileTreeIndex ¶
func NewFileTreeIndex(fs fs.ISimpleFS) *FileTreeIndex
func (*FileTreeIndex) AddPath ¶
func (idx *FileTreeIndex) AddPath(pathname string) error
func (*FileTreeIndex) DelPath ¶
func (idx *FileTreeIndex) DelPath(pathname string) error
func (*FileTreeIndex) MovePath ¶
func (idx *FileTreeIndex) MovePath(pathname, dstParentPath string) error
func (*FileTreeIndex) ReadFrom ¶
func (idx *FileTreeIndex) ReadFrom(pathname string) error
func (*FileTreeIndex) RenamePath ¶
func (idx *FileTreeIndex) RenamePath(pathname, newName string) error
func (*FileTreeIndex) WriteTo ¶
func (idx *FileTreeIndex) WriteTo(pathname string) error
Click to show internal directories.
Click to hide internal directories.