es_fileentry

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL