Documentation ¶
Index ¶
- func Create(first string, more ...string) error
- func CurrentDir() string
- func DelFile(absPath string) error
- func Exist(filePath string) bool
- func FormatFileSize(fileSize int64) (size string)
- func GetCurrentDirectory() string
- func GetPathDirs(absPath string) ([]string, error)
- func InsertSuffix(src string, suffix string) string
- func IsDir(path string) bool
- func IsFile(path string) bool
- func MakeDir(fileDir string) error
- func MakeDirByFile(filePath string) error
- func Read(filename string) (string, error)
- func ReplaceExt(src string, ext string) string
- func SavaToFile(filePath string, bytes []byte) error
- func Size(path string) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatFileSize ¶
func GetCurrentDirectory ¶
func GetCurrentDirectory() string
func GetPathDirs ¶
func InsertSuffix ¶
InsertSuffix insert a suffix to filepath
func MakeDirByFile ¶
MakeDirByFile create a folder recursively based on the incoming file name ./dir/filename /home/dir/filename
func SavaToFile ¶
SavaToFile Save the byte array to the file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.