Versions in this module Expand all Collapse all v0 v0.0.5 Sep 29, 2022 Changes in this version + var ErrCopyOriginalExists = errors.New("拷贝文件时源文件不存在") + var ErrCopySrcExists = errors.New("拷贝文件时目标文件存在") + func Bytes2GB(bytes int64) float64 + func Bytes2MByes(bytes int64) float64 + func BytesToString(bytes int64) string + func CopyFile(original string, src string) error + func CreateNullFolder(catalog string) error + func FileExists(filePath string) (bool, error) + func FileMd5(path string) (string, error) + func FileSize(path string) (int64, error) + func FolderExists(path string, isCreate bool) (bool, error) + func ReadFolder(path string, isRecursive bool) ([]string, error) + func ValidateFileSign(localPath string, fileMd5 string, fileSize int64) error + func WriterFile(path string, content []byte) error + func WriterFileByAppend(path string, content []byte) error