Documentation ¶
Index ¶
- func EnsureDir(p string) (err error)
- func FileExists(path string) bool
- func IsDir(p string) bool
- func IsFile(path string) bool
- func ReadAllLines(path string) ([]string, error)
- func Scan(dir string, opts ...ScanOpt) (files, folders []string, err error)
- func Unzip(src string, dest string) (inflated []string, err error)
- type ScanOpt
- type ScanOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAllLines ¶
Types ¶
type ScanOpt ¶
type ScanOpt func(options *ScanOptions)
func WithBothFileAndFolder ¶
func WithBothFileAndFolder() ScanOpt
WithBothFileAndFolder specifies scan both files and folders
func WithFoldersOnly ¶
func WithFoldersOnly() ScanOpt
WithFoldersOnly specifies only scan for folders
func WithPatterns ¶
WithPatterns specifies regex pattern to scan for
type ScanOptions ¶
type ScanOptions struct {
// contains filtered or unexported fields
}
ScanOptions holds folder scan options
Click to show internal directories.
Click to hide internal directories.