Documentation
¶
Index ¶
- func ClearDir(dirPath string) error
- func ClearDirF(dirPath string) error
- func Copy(sourcePath, targetPath string) error
- func CreateFile(filePath string) (*os.File, error)
- func Download(sourceUrl, targetPath string) error
- func GetAllFiles(dirPath string) ([]string, error)
- func IsDir(filePath string) bool
- func IsEmpty(dirname string) bool
- func IsExist(filePath string) bool
- func IsFile(filePath string) bool
- func ListIndex(dirPath string) ([]string, []string, error)
- func MkDir(dirPath string) error
- func Name(filePath string) string
- func ReadFileToBytes(filePath string) ([]byte, error)
- func ReadHttpFileToBytes(fileUrl string) ([]byte, error)
- func RemoveDir(dirPath string) error
- func SelfDir() string
- func SelfPath() string
- func WriteBytesToFile(filePath string, b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadHttpFileToBytes ¶
ReadHttpFileToBytes 读网络文件
func WriteBytesToFile ¶
WriteBytesToFile 写文件 覆盖
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.