Documentation ¶
Index ¶
- func CopyFileOrFolder(src, dst string) error
- func CreateDir(dirpath string) error
- func CreateFile(fp string) (file *os.File, err error)
- func EachPath(path string, cb func(string) bool) error
- func FileOrFolderExists(path string) (exists bool, isFolder bool)
- func FilterPath(path, expr string) (list []string, err error)
- func GetFileMD5(path string) (string, error)
- func MoveFileOrFolder(src, dst string) error
- func OpenFile(filepath string, readOnly bool) (file *os.File, err error)
- func ReadFileAllBytes(filepath string) ([]byte, error)
- func ReadFileAllLines(filepath string) (lines []string, err error)
- func ReadFileAllString(filepath string) (string, error)
- func SplitFileName(p string) (dir, name, ext, namewithoutext string)
- func WriteAllBytesToFile(fp string, data []byte) (err error)
- func WriteAllLinesToFile(fp string, lines []string) (err error)
- func WriteAllStringToFile(fp, str string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFileOrFolder ¶
func FileOrFolderExists ¶
func FilterPath ¶
func GetFileMD5 ¶
func MoveFileOrFolder ¶
func ReadFileAllBytes ¶
func ReadFileAllLines ¶
func ReadFileAllString ¶
func SplitFileName ¶
func WriteAllBytesToFile ¶
func WriteAllLinesToFile ¶
func WriteAllStringToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.