Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DirectoryInfo ¶
type DirectoryInfo struct {
Key string `json:"key" mapstructure:"key"`
Path string `json:"path" mapstructure:"path"`
}
DirectoryInfo represents information about a directory
func GetUserDirectories ¶
func GetUserDirectories() []DirectoryInfo
GetUserDirectories returns a list of user directories
type FileInfo ¶
type FileInfo struct {
Name string `json:"name" mapstructure:"name"`
Path string `json:"path" mapstructure:"path"`
Size int64 `json:"size" mapstructure:"size"`
Modified int64 `json:"modified" mapstructure:"modified"`
Extension string `json:"extension" mapstructure:"extension"`
MimeType string `json:"mime_type" mapstructure:"mime_type"`
}
FileInfo represents information about a file
func GetDirectoryContents ¶
GetDirectoryContents returns the contents of a directory
func GetFileInfo ¶
GetFileInfo returns information about a file
Click to show internal directories.
Click to hide internal directories.