Documentation ¶
Index ¶
- func Cd(to string) error
- func Home() (string, error)
- func Mkdir(path string) error
- func Pwd() (string, error)
- func Touch(name string) error
- func Unzip(src string, dest string) error
- func Zip(srcFiles []string, dest string) error
- type Fileable
- func (f Fileable) Check(files ...string) bool
- func (f Fileable) Chmod(mode os.FileMode) error
- func (f Fileable) Extension() (string, error)
- func (f Fileable) IsDir() (bool, error)
- func (f Fileable) IsFile() (bool, error)
- func (f Fileable) Mv(to string) error
- func (f Fileable) Rm() error
- func (f Fileable) WriteString(str string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fileable ¶
type Fileable struct {
Path string
}
Fileable represents a file or directory.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.