Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateFileTree ¶
GenerateFileTree recursively generates a file tree for the given directory
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 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.