file

package
v0.0.1-20220809-0008 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) (int64, error)

func Delete

func Delete(filePath string) (bool, error)

func DeleteAll

func DeleteAll(path string) error

func DeleteRecursive

func DeleteRecursive(path string) error

func Exists

func Exists(filename string) bool

func ExistsErr

func ExistsErr(filename string) (bool, error)

func FilterPath

func FilterPath(path string) string

func GetContents

func GetContents(filename string) (string, error)

func IsDir

func IsDir(path string) bool

func IsFile

func IsFile(path string) bool

func Name

func Name(filePath string) string

func PutContents

func PutContents(filename string, data string) error

func PutContentsMode

func PutContentsMode(filename string, data string, mode os.FileMode) error

func Remove

func Remove(filePath string) (bool, error)

func RemoveAll

func RemoveAll(path string) error

func RemoveRecursive

func RemoveRecursive(path string) error

func Size

func Size(filePath string) (int64, error)
func Unlink(filePath string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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