Versions in this module Expand all Collapse all v1 v1.0.1 Sep 6, 2022 v1.0.0 Aug 17, 2022 Changes in this version + func AbsPath(filePath string) (string, error) + func Append(fileName string, data []byte, perm ...os.FileMode) error + func Copy(srcName, destName string, perm ...os.FileMode) error + func Deldir(filePath string) error + func DirSize(rootPath string) (fileNum, dirSize int64) + func Ext(fileName string) string + func Hash(fileName string, h hash.Hash) (string, error) + func IsAbsPath(filePath string) bool + func IsDir(filePath string) bool + func IsExist(filePath string) bool + func IsFile(filePath string) bool + func MD5(fileName string) (string, error) + func Mkdir(filePath string, perm ...os.FileMode) error + func Read(fileName string) ([]byte, error) + func ReadToSlice(fileName string) ([]string, error) + func Remove(fileName string) error + func Rename(oldName, newName string) error + func SHA1(fileName string) (string, error) + func SHA256(fileName string) (string, error) + func SHA512(fileName string) (string, error) + func Size(fileName string) int64 + func Write(fileName string, data []byte, perm ...os.FileMode) error