file

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Zlib Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile added in v1.0.54

func CopyFile(old, new string) error

CopyFile is used to copy a file

func CopyN added in v1.0.59

func CopyN(writer io.Writer, src io.Reader, size int64) (int64, error)

func DirEmpty added in v1.1.11

func DirEmpty(path string) bool

DirEmpty 目录是否为空

func IsDir

func IsDir(f string) int

func IsExist

func IsExist(f string) bool

IsExist 文件或目录

func IsFile

func IsFile(f string) bool

func Open added in v1.1.11

func Open(filename string) (*os.File, int64, error)

func PathPrefix

func PathPrefix(path string) string

func Read added in v1.0.56

func Read(f io.Reader, size int) ([]byte, error)

func ReadFile added in v1.0.56

func ReadFile(f *os.File) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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