Documentation ¶
Index ¶
- Variables
- func CopyFile(src, dst string) error
- func CreateDir(basePath, folderName string) (string, error)
- func DirIsEmpty(dirname string) bool
- func FileExists(name string) bool
- func FindResourcePth(fileName string, pathsarr ...string) string
- func IsUrlMovie(s string) bool
- func ListFileNames(path string, prefix string) ([]string, error)
- func Md5File(path string) (string, error)
- func ReadFile(filePath string) ([]byte, error)
- func RemoveDirContents(dir string) error
- func SplitFile(filePth string, saveDir string, chunkSize int64) ([]string, error)
- func WriteFile(content []byte, filePath string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CmdPath = ""
)
Functions ¶
func FindResourcePth ¶
从指定的目录里查找资源, 查找的目录包括$GOPATH, $GOPATH/src/resources, $GOPATH/resources, appPath, workPath/docs, /opt/goproject等
func IsUrlMovie ¶
func ListFileNames ¶
列举目录内所有文件 prefix 调用时传""
func RemoveDirContents ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.