Skip to content

go wrapper for specific filesystem op or info calls

License

Notifications You must be signed in to change notification settings

gol-gol/golfiles

Repository files navigation

golfiles

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

Public Functions

  • 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)


About

go wrapper for specific filesystem op or info calls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages