filex

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileCheckExist

func FileCheckExist(src string) (bool, error)

FileCheckExist 检查文件是否存在

func FileCheckPermission

func FileCheckPermission(src string) (bool, error)

FileCheckPermission 检查文件权限

func FileCreate

func FileCreate(content bytes.Buffer, name string) (err error)

func FileGetExt

func FileGetExt(fileName string) string

获取文件后缀

func FileGetSize

func FileGetSize(f multipart.File) (int, error)

获取文件大小

func FileRemove

func FileRemove(name string) (err error)

func FileZip

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

FileZip 文件ZIP压缩

func GetCurrentPath

func GetCurrentPath() string

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

func IsNotExistMkDir

func IsNotExistMkDir(src string) error

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

func MkDir

func MkDir(src string) error

MkDir 新建文件夹

func Open

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

打开文件

func PathCreate

func PathCreate(dir string) error

func PathExists

func PathExists(path string) (bool, error)

func PathRemove

func PathRemove(name string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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