fileutil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(filePath string) error

Clear 清理目录下的所有文件 Deprecated

func Copy

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

Copy 复制文件 Deprecated

func Exist

func Exist(filename string) bool

Exist 判断文件是否存在 Deprecated

func PathExist

func PathExist(path string) bool

PathExist 判断路径/目录是否存在 Deprecated

func QiNiuHash

func QiNiuHash(f io.Reader, fsize int64) (etag string, err error)

QiNiuHash 获得文件内容的 hash see: fsutil.QiNiuHash() Deprecated

Types

This section is empty.

Jump to

Keyboard shortcuts

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