filex

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPermission added in v0.0.34

func CheckPermission(src string, mode os.FileMode) (bool, error)

CheckPermission 检查文件权限

func CreateFile added in v0.0.34

func CreateFile(buff *bytes.Buffer, fpath string) (err error)

func Ext added in v0.0.34

func Ext(fileName string) string

Ext 获取文件后缀

func FileZip

func FileZip(dst, src string, notContPath string) (err error)

FileZip 文件ZIP压缩

func GetCurrentPath

func GetCurrentPath() string

GetCurrentPath 获取当前路径,比如:E:/abc/data/test

func IsExist added in v0.0.34

func IsExist(path string) bool

func IsNotExistMkDir

func IsNotExistMkDir(src string) error

IsNotExistMkDir 如果不存在则新建文件夹

func Mkdir added in v0.0.34

func Mkdir(src string) error

Mkdir 新建文件夹

func OpenFile added in v0.0.34

func OpenFile(fpath string, flag int, perm os.FileMode) (f *os.File, err error)

OpenFile 打开文件

func Remove added in v0.0.34

func Remove(name string) (err error)

func Size added in v0.0.34

func Size(r io.Reader) int

Size 获取文件大小

Types

This section is empty.

Jump to

Keyboard shortcuts

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