Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Directory ¶
type Directory struct {
Active int
ActiveFile Pseudofile
Path string
Selected map[string]bool
Files []Pseudofile
}
Directory holds representation of a directory
func NewParentDir ¶
NewParentDir get parent dir and select itself
func (*Directory) SelectFile ¶
SelectFile change active file
func (*Directory) SelectFileByName ¶
SelectFileByName change active file
type Pseudofile ¶
type Pseudofile struct {
Name string
FullPath string
IsDir bool
IsReal bool
IsLink bool
Link Link
F os.FileInfo
}
Pseudofile file info
func (*Pseudofile) Copy ¶
func (f *Pseudofile) Copy(dt *Tree, directory string)
Copy file to new location
func (*Pseudofile) Move ¶
func (f *Pseudofile) Move(dt *Tree, directory string)
Move file to new location
type Tree ¶
Tree holds multiple directories
func (*Tree) ChangeDirectory ¶
ChangeDirectory cd
func (*Tree) SelectFile ¶
SelectFile change active file
func (*Tree) SelectFileByName ¶ added in v0.0.6
SelectFileByName change active file
Click to show internal directories.
Click to hide internal directories.