Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileNode ¶
type FileNode struct {
Name string `json:"name"`
Size int64 `json:"size,omitempty"`
FileType string `json:"fileType,omitempty"`
Path string `json:"path"`
CreatedDate int64 `json:"createdDate,omitempty"`
LastModified int64 `json:"lastModified,omitempty"`
IsDir bool `json:"isDir"`
Children []*FileNode `json:"children,omitempty"`
}
type FileTreeResult ¶ added in v1.1.4
func GenerateFileTree ¶
func GenerateFileTree(root string, organize bool) (*FileTreeResult, error)
GenerateFileTree recursively generates a file tree for the given directory
type OrganizedTree ¶
func OrganizeFileTree ¶
func OrganizeFileTree(node *FileNode) OrganizedTree
Organizes the file tree into a flat list
Click to show internal directories.
Click to hide internal directories.