Documentation ¶
Index ¶
- Constants
- type Local
- func (lc *Local) Append(filename string, content []byte, options ...interface{}) error
- func (lc *Local) Chown(folderPath string, perm os.FileMode) error
- func (lc *Local) Copy(src, dst string) error
- func (lc *Local) Delete(src string) error
- func (lc *Local) Directories(path string) []string
- func (lc *Local) Files(path string) []string
- func (lc *Local) Get(filename string) ([]byte, error)
- func (lc *Local) GetVisibility(filename string) string
- func (lc *Local) Has(filename string) bool
- func (lc *Local) Metadata(filename string) meta.Metadata
- func (lc *Local) Mkdir(folderPath string, perm os.FileMode) error
- func (lc *Local) Move(src, dst string) error
- func (lc *Local) SetVisibility(filename string, visibility string) error
- func (lc *Local) Walk(root string, lsMode int) []string
- func (lc *Local) Write(filename string, content []byte, options ...interface{}) error
- type Metadata
Constants ¶
View Source
const ( LS_MODE_ALL = -1 + iota LS_MODE_FILE LS_MODE_DIR )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct {
RootPath string
}
func (*Local) Directories ¶
func (*Local) GetVisibility ¶
func (*Local) SetVisibility ¶
type Metadata ¶
type Metadata struct { Path string `json:"path"` Dirname string `json:"dirname"` Extension string `json:"extension"` Filename string `json:"filename"` ModTime time.Time `json:"modified_at"` Size int64 `json:"size"` PermMode os.FileMode `json:"perm_mode"` Type string `json:"type"` Stat os.FileInfo `json:"-"` }
Click to show internal directories.
Click to hide internal directories.