Documentation ¶
Index ¶
- func ClearDir(dir string) bool
- func CopyDir(source string, dest string) (err error)
- func CopyFile(srcName, dstName string) (written int64, err error)
- func DeleteFile(path string) bool
- func GetCurrentDirectory() string
- func GetFileStrContent(path string) string
- func GetFilename(path string) string
- func GetFilesize(path string) int64
- func GetParentDirectory(dirctory string) string
- func IsDirExists(path string) bool
- func IsFileExist(filename string) bool
- func ListDir(dir string) []string
- func MkdirAll(dir string) bool
- func PutFileStrContent(path, content string) bool
- func SplitFilename(filename string) (baseName, ext string)
- func Substr(s string, pos, length int) string
- func TransferExt(path string, toExt string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentDirectory ¶
func GetCurrentDirectory() string
GetCurrentDirectory get current directory
func GetParentDirectory ¶
GetParentDirectory get parent directory
func PutFileStrContent ¶
PutFileStrContent 写入string内容
func SplitFilename ¶
SplitFilename 分离文件名与扩展名(包含.)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.