Documentation ¶
Index ¶
- func CopyFile(dstName, srcName string) (written int64, err error)
- func CopyFileByBuffer(src, dst string, bufferSize int64) error
- func Exist(filename string) bool
- func FindAllFileBySuffix(basePath string, suffix string) []string
- func GetBasePath(fullFilename string) string
- func GetCurrentDirectory() string
- func GetFileNameNotSuffix(fullFilename string) string
- func GetFileSuffix(filenameWithSuffix string) string
- func GetFilenameWithSuffix(fullFilename string) string
- func GetFullNameNotSuffix(fullFilename string) string
- func GetListFiles(path string) []string
- func Hash_file_sha1(filePath string) (string, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func ListFiles(rootPath string, recursion bool, exts []string) ([]string, error)
- func ReplaceSuffix(fullFilename string, newSuffix string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFileByBuffer ¶
func FindAllFileBySuffix ¶
func GetCurrentDirectory ¶
func GetCurrentDirectory() string
*
- @Author $
- @Description //TODO $
- @Date $ $
- @Param $
- @return $ *
func GetFileNameNotSuffix ¶
GetFileNameNotSuffix 获取文件名
func GetFilenameWithSuffix ¶
GetFilenameWithSuffix 获取文件名带后缀 fullFilename 完整文件名称带路径,/var/data/test.txt 返回值 test.txt
func GetFullNameNotSuffix ¶
GetFullNameNotSuffix 获取不带后缀的完整文件名称
func GetListFiles ¶
func Hash_file_sha1 ¶
func ReplaceSuffix ¶
ReplaceSuffix 替换完整文件后缀
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.