Documentation ¶
Index ¶
- func AddPathSepIfNeed(path string) (newPath string)
- func CreateDirRecursive(filePath string) error
- func DirSize(path string) (int64, error)
- func FileNameToJpgFileName(onlyFilename string) string
- func GetFilePath(fullfilename string) string
- func GetFilePathAndName(fullfilename string) (string, string)
- func GetFileSuffix(fullfilename string) string
- func GetFilename(fullfilename string) string
- func GetFilenameOnly(fullfilename string) string
- func IsFile(f string) (isFile bool, err error)
- func IsFileExist(f string) bool
- func IsFileNotExist(f string) bool
- func IsImage(filename string) bool
- func IsMediaFile(filename string) bool
- func IsVideo(filename string) bool
- func IsVideoExt(ext string) bool
- func ListDir(folder string) ([]string, error)
- func MoveFile(file, targetDirWithoutTargetName string) error
- func ReadFromFile(filename string) (error, []byte)
- func SearchEmptyFoldersAndFiles(d string) ([]string, error)
- func WriteToFile(filename string, content []byte, truncateIfExist bool) error
- func WriteToFileWithFlag(filename string, content []byte, flag int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPathSepIfNeed ¶
func FileNameToJpgFileName ¶
func GetFilePathAndName ¶ added in v1.0.0
/a/b/c.txt -> /a/b/, c.txt
func GetFileSuffix ¶ added in v1.0.0
/a/b/c.txt -> .txt
func IsFileExist ¶
func IsFileNotExist ¶
func IsMediaFile ¶
func IsVideoExt ¶ added in v1.0.0
func ReadFromFile ¶
func SearchEmptyFoldersAndFiles ¶ added in v1.0.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.