Documentation ¶
Index ¶
- func CopyFile(dstPath, srcPath string) error
- func DeleteOldFiles(folder string, n int) error
- func PathExists(name string) bool
- func PathNotExists(name string) (ok bool)
- func RemainNewFiles(folder string, n int64) error
- func SortStrings(x []string)
- func WrapErrors(allErrors ...error) (wrapped error)
- func ZipFiles(zipFilePath string, files []ZipFile) error
- func ZipPaths(zipFilePath string, paths []string) error
- type ZipFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteOldFiles ¶
DeleteOldFiles 刪除 folder 裡 n 個最舊的檔案。
func PathExists ¶
func RemainNewFiles ¶
RemainNewFiles 刪除 folder 裡的舊檔案, 剩下 n 個最新的檔案。
func SortStrings ¶
func SortStrings(x []string)
Types ¶
Click to show internal directories.
Click to hide internal directories.