Documentation ¶
Index ¶
- func CountDirFiles(dirName string) int
- func GetDirNameListInDir(dir string, opts FilterOptions) ([]string, error)
- func IsAbs(hostPath string) bool
- func IsCommandExist(cmdName string) bool
- func IsDir(path string) bool
- func IsFileExist(fileName string) bool
- func RecursionCopy(src, dst string) error
- func SetRootfsBinToSystemEnv(rootfs string) error
- type FileReader
- type FileWriter
- type FilterOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountDirFiles ¶
func GetDirNameListInDir ¶
func GetDirNameListInDir(dir string, opts FilterOptions) ([]string, error)
GetDirNameListInDir :Get all Dir Name or file name List In Dir
func IsCommandExist ¶ added in v0.9.0
func IsFileExist ¶
func RecursionCopy ¶
func SetRootfsBinToSystemEnv ¶
Types ¶
type FileReader ¶
func NewFileReader ¶
func NewFileReader(fileName string) FileReader
type FileWriter ¶
func NewAtomicWriter ¶
func NewAtomicWriter(fileName string) FileWriter
func NewCommonWriter ¶
func NewCommonWriter(fileName string) FileWriter
type FilterOptions ¶
type FilterOptions struct {
All, OnlyDir, OnlyFile, WithFullPath bool
}
Click to show internal directories.
Click to hide internal directories.