Documentation
¶
Index ¶
- func Abs(path string) string
- func Base(path string) string
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) error
- func Delete(path string) error
- func Dir(path string) string
- func Exists(path string) bool
- func Ext(path string) string
- func FixPath(path string) string
- func GetBytes(file string) ([]byte, error)
- func GetContent(file string) (string, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func Join(elem ...string) string
- func Mkdir(path string) error
- func Move(oldPath, newPath string) error
- func PutBytes(file string, data []byte) error
- func PutContent(file, content string) error
- func RealPath(path string) string
- func RemoveAll(path string) error
- func RemoveFile(path string) error
- func ScanDir(path string, pattern string, recursives ...bool) ([]string, error)
- func ScanDirConfig(path string, config ScanOption) ([]string, error)
- func ScanFile(path string, pattern string, recursives ...bool) ([]string, error)
- func ScanFiles(path string, pattern string, callback func(path string, d fs.DirEntry) bool, ...) ([]string, error)
- func Stat(path string) (os.FileInfo, error)
- type ScanOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContent ¶
func PutContent ¶
func RemoveFile ¶
func ScanDirConfig ¶
func ScanDirConfig(path string, config ScanOption) ([]string, error)
ScanDirConfig 自定义扫描目录
Types ¶
Click to show internal directories.
Click to hide internal directories.