fs

package
v0.0.0-...-b629d69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ERR_INVALID_DIR = errors.New("invaild directory")
)

Functions

func CopyDirRecursive

func CopyDirRecursive(src, dst string, overwrite bool) error

func CopyFile

func CopyFile(src, dst string, overwrite bool) error

func CreateFileReadStream

func CreateFileReadStream(path string) (*os.File, error)

func FileExists

func FileExists(path string) (bool, error)

func IsAccessible

func IsAccessible(path string) bool

func IsDirectory

func IsDirectory(path string) (bool, error)

func IsFile

func IsFile(path string) (bool, error)

func ReadDirRecursive

func ReadDirRecursive(p string) (map[string]fs.DirEntry, error)

func ReadToBytes

func ReadToBytes(path string) ([]byte, error)

func ReadToString

func ReadToString(path string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL