Documentation
¶
Index ¶
- func AppendString(filePath string, data string) (err error)
- func ClearDir(dirPath string) (err error)
- func Copy(srcFilePath string, dstFilePath string) (err error)
- func CountLine(filePath string) (count int, err error)
- func Exists(filePath string) bool
- func GetAllFiles(dirPath string, suffix string) (filePaths []string, err error)
- func IsReadable(filePath string) bool
- func MakeDir(dirPath string) error
- func Read(filePath string) (string, error)
- func Remove(filePath string) error
- func Rename(oldFilePath string, newFilePath string) error
- func Write(filePath string, data string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendString ¶
AppendString appends string data to a file. It creates distFile in case not exists, and truncates distFile in case already exists.
func GetAllFiles ¶
GetAllFiles returns all files in a directory. If suffix is not empty, it returns only files of specified suffix.
func IsReadable ¶
IsReadable checks if a file or directory can be read.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.