Documentation ¶
Index ¶
- func Chmod(files []string, mode os.FileMode) error
- func Cp(source string, destination string) error
- func Fex(filename string) bool
- func Ls(dirPath string) ([]os.FileInfo, error)
- func MkDir(path string) error
- func Mv(source string, destionation string) error
- func Rd(source string) []byte
- func Rm(filePath string) error
- func RmDir(dirPath string) error
- func RmDirChildren(dirPath string) error
- func Slash() string
- func Unzip(archive string, destination string) error
- func Wr(destination string, contents []byte, mode os.FileMode) error
- func Zip(source string, target string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fex ¶
Fex checks if a file exists. If the file in question is a Directory false is returned. If the file is not a directory and os.Stat was succesful true is returned.
func Rd ¶
Rd returns the contents of a file as bytes. Returns an empty []byte if the file could not be read.
func RmDirChildren ¶
RmDirChildren only deletes the children of a directory
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.