Documentation ¶
Overview ¶
Pacakge tree implements the methods that are used by the implementation of the tree command. This command display a text based graphical representation of a directory.
Index ¶
- type FileEntry
- func (fe *FileEntry) AddEntry(newEntry *FileEntry) *FileEntry
- func (fe *FileEntry) AllPaths() []*FileEntry
- func (fe *FileEntry) Back() *list.Element
- func (fe *FileEntry) Filename() string
- func (fe *FileEntry) Front() *list.Element
- func (fe *FileEntry) FullFilename() string
- func (fe *FileEntry) Init(name string, parent *FileEntry) *FileEntry
- func (fe *FileEntry) Len() int
- func (fe *FileEntry) ParentDir() *FileEntry
- func (fe *FileEntry) RemoveElement(e *list.Element) *FileEntry
- type FileEntryElementTypeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileEntry ¶
type FileEntry struct { // the directory entries. Error error // The error retrieving this file entry. // contains filtered or unexported fields }
This is a FileEntry that will contain all the information. If the parent is Null then it is root directory entry
func GetFileEntryForDir ¶
GetFileEntryForDir This is a convience function that just calls GetFileEntryForDirWithThreadSize, with the threadSize set to 200.
func GetFileEntryForDirWithThreadSize ¶
GetFileEntryForDirWithThreadSize function returns a FileEntry structure that contains the entire directory tree.
func (*FileEntry) FullFilename ¶
Return the full filename including the parent directories.
type FileEntryElementTypeError ¶
type FileEntryElementTypeError string
func (FileEntryElementTypeError) Error ¶
func (err FileEntryElementTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.