facade for regular used Go wrapper calls for specific Filesystem operations or info functions
extracted from an older pandora box of such packages at abhishekkr/gol
-
CwdBasename() string
-
PathExists(path string) bool
-
PathLs(basePath string) (map[int]string, error)
-
PathLsN(basePath string, depth int) (map[int]string, error)
-
PathLsType(basePath string, filetypes []string) (map[int]string, error)
-
PathLsNType(basePath string, depth int, filetypes []string) (map[int]string, error)
-
PathLsTypeNot(basePath string, filetypes []string) (map[int]string, error)
-
PathLsNTypeNot(basePath string, depth int, filetypes []string) (map[int]string, error)
-
MkDirWithPermission(dirpath string, mode os.FileMode) error
-
MkDir(dirpath string) error
-
MoveFile(src, dst string) error
-
CopyFile(src, dst string) error
-
CreateBinaryFile(filename string, blob []byte) error
-
AppendBinaryToFile(filename string, blob []byte) error
-
AppendToFile(filename, txt string) error
-
ReadBinaryFile(filepath string) ([]byte, error)
-
ReadFileBuffer(filepath string) (*bytes.Buffer, error)