Documentation ¶
Index ¶
- Constants
- func AbsPath(path string) (string, error)
- func BaseName(path string) string
- func Exists(path string) bool
- func FileExt(path string) string
- func FileFilter(fileList *list.List, ext string, hasExt bool) *list.List
- func GetFilesAndDirectories(root string) (*list.List, *list.List, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func IsReadableDirectory(path string) bool
- func IsReadableFile(path string) bool
- func MoveFile(file1, file2 string) error
- func ParentPath(path string) string
- func ReadDir(path string) ([]os.DirEntry, error)
- func SaveFile(path string, data []byte) error
- func ScanPath(root string, fn SkipFunc) (*list.List, error)
- func SkipDir(info os.FileInfo) bool
- func SkipFile(info os.FileInfo) bool
- func Visit(root string, visitFunc VisitFunc, visitOpt VisitOpt)
- type SkipFunc
- type VisitFunc
- type VisitOpt
Constants ¶
View Source
const Separator = string(os.PathSeparator)
Variables ¶
This section is empty.
Functions ¶
func GetFilesAndDirectories ¶
func IsReadableDirectory ¶
func IsReadableFile ¶
func ParentPath ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.