Documentation ¶
Index ¶
- func AppendContentToFile(content string, fileUrl string) error
- func CopyDir(src string, dst string) error
- func CopyFile(srcUri string, dstUri string) error
- func DirExists(dir string) bool
- func DirSize(path string) (int64, error)
- func FileExists(fileUri string) bool
- func GetExtension(fileName string) string
- func GetFileName(filePath, Splitor string) string
- func MakeDir(dir string) error
- func ModifyTime(path string) (int64, error)
- func PathExists(path string) bool
- func PrependContentToFile(content string, fileUrl string) error
- func ReadFile(fileUrl string) (string, error)
- func RemoveDir(dir string) error
- func ScanDir(deep bool, result *ScanDirStruct) error
- func WriteContentToFile(content string, dir string, fileUrl string) error
- type ScanDirStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendContentToFile ¶
Append Content To File
func PrependContentToFile ¶
Prepend Content To File
func ScanDir ¶ added in v1.7.7
func ScanDir(deep bool, result *ScanDirStruct) error
Types ¶
type ScanDirStruct ¶ added in v1.7.7
type ScanDirStruct struct { Name string Path string IsDir bool Sons []*ScanDirStruct }
Scan Dir
Click to show internal directories.
Click to hide internal directories.