fs

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BUFFERSIZE int64

Functions

func CopyDir

func CopyDir(src, dst string, BUFFERSIZE int64) error
func CopySymLink(source, dest string) error

func CreateIfNotExists

func CreateIfNotExists(dir string, perm os.FileMode) error

func CutTo

func CutTo(data []byte, size int) [][]byte

func DirExist

func DirExist(dir string) bool

func Exists

func Exists(filePath string) bool

func GetFilesList

func GetFilesList(dir string) []string

func ReadAllFiles

func ReadAllFiles(dir string, fn interface{})

func ReadByte

func ReadByte(dir string) ([]byte, error)

func ReadDir

func ReadDir(dirname string) ([]fs.FileInfo, error)

func ReadString

func ReadString(dir string) (string, error)

func RemoveContents

func RemoveContents(dir string, ignore []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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