Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LocalEntryByNameLower ¶
func LocalEntryByNameLower(entries []LocalEntry) (byName map[string]LocalEntry)
Types ¶
type LocalEntry ¶
type LocalEntry struct {
// fully qualified path
Path string `json:"path"`
// name of the entry
Name string `json:"name"`
// File size
Size int64 `json:"size"`
// Modification time
ModTime time.Time `json:"mod_time"`
// File mode
Mode os.FileMode `json:"mode"`
// Is Folder
IsFolder bool
}
os.FileInfo equivalent serializable structure
func NewLocalEntry ¶
func NewLocalEntry(path string, entry os.FileInfo) LocalEntry
func ReadLocalEntries ¶
func ReadLocalEntries(path string) (entries []LocalEntry, err error)
Click to show internal directories.
Click to hide internal directories.