Documentation
¶
Index ¶
- func BuildDir(absDir string) error
- func CheckFileIsExist(filename string) bool
- func CheckPermission(src string) bool
- func CopyDir(source, dest string) (err error)
- func CopyFile(source, dest string) (err error)
- func DeleteFile(absDir string) error
- func DirName(argv ...string) string
- func Exist(fileName string) bool
- func GetCurrentDirectory() string
- func GetModelPath() string
- func GetPathDirs(absDir string) (re []string)
- func GetPathFiles(absDir string) (re []string)
- func GetProPath() string
- func GrepFile(patten, filename string) (lines []string, err error)
- func IsDir(path string) bool
- func IsExist(path string) bool
- func IsNotExist(src string) bool
- func IsNotExistMkDir(src string) (err error)
- func List(dirPth, suffix string) (files []string, err error)
- func ListDir(dirPth, suffix string) (files []string, err error)
- func MkDir(src string) error
- func PathExists(path string) (bool, error)
- func Search(fileName string, paths ...string) (fullpath string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPermission ¶
CheckPermission check if the file has permission
func Exist ¶
Exist checks whether a file or directory exists. It returns false when the file or directory does not exist.
func GetProPath ¶
func GetProPath() string
func GrepFile ¶
GrepFile like command grep -E for example: GrepFile(`^hello`, "hello.txt") \n is striped while read
func IsNotExistMkDir ¶
IsNotExistMkDir create a directory if it does not exist
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.