file

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckExist

func CheckExist(src string) bool

CheckExist 检查文件是否存在

func CheckNotExist

func CheckNotExist(src string) bool

CheckNotExist 检查文件是否不存在

func CheckPermission

func CheckPermission(src string) bool

CheckPermission 检查文件是否具有权限

func GetExt

func GetExt(fileName string) string

GetExt 获取文件后辍名

func GetSize

func GetSize(f io.Reader) (int, error)

GetSize 获取文件大小

func IsNotExistMkDir

func IsNotExistMkDir(src string) error

IsNotExistMkDir 创建目录(如果不存在)

func MkDir

func MkDir(src string) error

MkDir 创建目录

func MustOpen

func MustOpen(filepath string) (*os.File, error)

MustOpen 最大化尝试打开文件 filePath是文件路径,fileName是文件名

func Open

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

Open 根据特定模式打开文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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