Documentation
¶
Index ¶
- type Entry
- type File
- type Folder
- func (f *Folder) AddFile(name string) error
- func (f *Folder) AddMount(name, path string) error
- func (f *Folder) FindFolder(name string) *Folder
- func (f Folder) Format() string
- func (f Folder) IsDir() bool
- func (f Folder) IsFile() bool
- func (f Folder) IsMount() bool
- func (f Folder) List() []string
- func (f Folder) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry interface {
IsFile() bool
IsDir() bool
IsMount() bool
// contains filtered or unexported methods
}
Entry is any kind of tree node
type Folder ¶
type Folder struct {
Name string // Name is the displayed name of this folder
Path string // Path is only used for mounts, it's the on-disk path
Root bool // Root is used for the root node to remove any prefix
Entries map[string]Entry // the sub-entries, prevents having files and folder w/ same name
}
Folder is intermediate tree node
func (*Folder) FindFolder ¶
FindFolder returns a sub-tree or nil, if the subtree does not exist
Click to show internal directories.
Click to hide internal directories.