Documentation
¶
Index ¶
- func RecurseScanSymlink(path, linkEndPoint string) (fileList []string, err error)
- func ScanDir(root string, showDirs ...bool) (files []string, err error)
- func ScanDirDepth(root string, depth int, optParam ...bool) (files []string, err error)
- func ScanDirFileInfo(root string) (infosF []os.FileInfo, err error)
- func ScanDirFileInfoMask(root string, masks []string) (infosFiles, infosDirs, infosSymlink []os.FileInfo, err error)
- func ScanSubDir(root string, showDirs ...bool) (files []string, err error)
- type ScanDirFileInfos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecurseScanSymlink ¶
Scan dir and subdir to get symlinks with specified endpoint.
func ScanDirDepth ¶
ScanDirDepth: retrieve files in a specific directory and his sub-directory depending on depth argument. depth = -1 means infinite, depth = 0 means no sub-dir. optParams: showDir, followSymlinks as bool.
func ScanDirFileInfo ¶
ScanDirFileInfo: retrieve []os.FileInfo from a defined directory
func ScanDirFileInfoMask ¶
func ScanDirFileInfoMask(root string, masks []string) ( infosFiles, infosDirs, infosSymlink []os.FileInfo, err error)
ScanDirFileInfoMask: retrieve []os.FileInfo from a defined directory "masks" is used to filter files that are kept. infosFiles, infosDirs, infosSymlink as return arguments.
Types ¶
type ScanDirFileInfos ¶
func ScanDirDepthFileInfo ¶
func ScanDirDepthFileInfo(root string, depth int, optParam ...bool) (files []ScanDirFileInfos, err error)
ScanDirDepthFileInfo: retrieve files in a specific directory and his sub-directory depending on depth argument. depth = -1 means infinite, depth = 0 means no sub-dir. optParams: showDir, followSymlinks as bool. return a structure that contain filename and os.FileInfo.