Documentation ¶
Index ¶
- func AbsolutePath(pth string) string
- func AddFilePathSepIfNeeded(pth string) string
- func AddSepIfNeeded(pth string) string
- func AddUrlPathSepIfNeeded(url string) string
- func CopyDir(src, dest string) (err error)
- func CopyFile(src, dst string) (nBytes int64, err error)
- func CopyFileAll(src, dst string) (nBytes int64, err error)
- func Download(url string, dst string) (err error)
- func FileExist(path string) bool
- func GetAbsolutePath(pth string) string
- func GetDirName(pth string) (name string)
- func GetExtName(pathOrUrl string) string
- func GetExtNameWithoutDot(pathOrUrl string) string
- func GetFileName(pathOrUrl string) string
- func GetFileNameBySep(path string, pthSep string) string
- func GetFileNameWithoutExt(pathOrUrl string) string
- func GetFilesFromParams(arguments []string) []string
- func GetMd5(pth string) (ret string, err error)
- func GetUserHome() (dir string, err error)
- func GetWorkDir() string
- func GetZTFDir() (dir string)
- func GetZTFHome() string
- func HTTPDownload(uri string) ([]byte, error)
- func IsAbsolutePath(pth string) bool
- func IsDir(f string) bool
- func IsFile(path string) bool
- func Md5(path string) string
- func MkDirIfNeeded(dir string) error
- func ReadFile(filePath string) string
- func ReadFileBuf(filePath string) []byte
- func RemoveFilePathSepIfNeeded(pth string) string
- func RmDir(dir string) error
- func Unzip(zipPath, dstDir string) error
- func Upload(url string, files []string, extraParams map[string]string)
- func UploadWithResp(url string, files []string, extraParams map[string]string) map[string]interface{}
- func WriteDownloadFile(dst string, d []byte) error
- func WriteFile(filePath string, content string)
- func ZipDir(dist string, dir string) error
- func ZipFiles(dist string, dir string, files []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
func AddFilePathSepIfNeeded ¶
func AddSepIfNeeded ¶
func AddUrlPathSepIfNeeded ¶
func CopyFileAll ¶
func GetAbsolutePath ¶
func GetDirName ¶
func GetExtName ¶
func GetExtNameWithoutDot ¶
func GetFileName ¶
func GetFileNameBySep ¶
func GetFileNameWithoutExt ¶
func GetFilesFromParams ¶
func GetUserHome ¶
func GetWorkDir ¶
func GetWorkDir() string
func GetZTFHome ¶
func GetZTFHome() string
func HTTPDownload ¶
func IsAbsolutePath ¶
func MkDirIfNeeded ¶
func ReadFileBuf ¶
func UploadWithResp ¶
func WriteDownloadFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.