Documentation ¶
Index ¶
- func ABS(path string) (abspath string, err error)
- func APPEND(path string, a ...interface{}) (err error)
- func CAT(path string, a ...interface{}) (r io.Reader, err error)
- func CATS(path string, a ...interface{}) (cntnt string, err error)
- func FINDROOT(path string, altpath ...string) (root string, err error)
- func FINDROOTS(path string, altpath ...string) (roots []string, err error)
- func FINFOPATHSJSON(a ...FileInfo) (s string)
- func MKDIR(path string) error
- func MKDIRALL(path string) error
- func MULTICAT(path ...string) (r io.Reader, err error)
- func MULTICATS(path ...string) (cntnt string, err error)
- func MV(path string, destpath string) (err error)
- func PIPE(path string, a ...interface{}) (r io.Reader, err error)
- func PIPES(path string, a ...interface{}) (cntnt string, err error)
- func RM(path string) (err error)
- func SET(path string, a ...interface{}) (err error)
- func TOUCH(path string) (err error)
- type FSUtils
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FINFOPATHSJSON ¶
FINFOPATHSJSON []FileInfo to JSON array
Types ¶
type FSUtils ¶
type FSUtils struct { ABS func(path string) string `json:"abs"` LS func(path ...string) (finfos []FileInfo) `json:"ls"` FIND func(path ...string) (finfos []FileInfo) `json:"find"` FINDROOT func(path ...string) (root string) `json:"findroot"` FINDROOTS func(path ...string) (roots []string) `json:"findroots"` MKDIR func(path ...interface{}) bool `json:"mkdir"` MKDIRALL func(path ...interface{}) bool `json:"mkdirall"` RM func(path string) bool `json:"rm"` MV func(path string, destpath string) bool `json:"mv"` TOUCH func(path string) bool `json:"touch"` FINFOPATHSJSON func(a ...FileInfo) (s string) `json:"finfopathsjson"` PIPE func(path string, a ...interface{}) (r io.Reader) `json:"pipe"` PIPES func(path string, a ...interface{}) (s string) `json:"pipes"` CAT func(path string, a ...interface{}) (r io.Reader) `json:"cat"` MULTICAT func(path ...string) (r io.Reader) `json:"multicat"` CATS func(path string, a ...interface{}) (s string) `json:"cats"` MULTICATS func(path ...string) (s string) `json:"multicats"` SET func(path string, a ...interface{}) bool `json:"set"` APPEND func(path string, a ...interface{}) bool `json:"append"` DUMMYFINFO func(name string, path string, absolutepath string, size int64, mod os.FileMode, modtime time.Time) FileInfo `json:"dummyfino"` }
FSUtils struct
type FileInfo ¶
type FileInfo interface { Name() string // base name of the file Path() string // relative path of the file AbsolutePath() string // absolute path of the file Size() int64 // length in bytes for regular files; system-dependent for others Mode() os.FileMode // file mode bits ModTime() time.Time // modification time IsDir() bool // abbreviation for Mode().IsDir() JSON() string //json representation as a string }
A FileInfo describes a file
Click to show internal directories.
Click to hide internal directories.