file

package
v0.0.0-...-23c13d2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNotExist

func CheckNotExist(src string) bool

查文件是否存在

func CheckPermission

func CheckPermission(src string) bool

检查文件是否有权限

func GetExt

func GetExt(fileName string) string

获取文件类型

func GetSize

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

获取文件大小

func IsNotExistMkDir

func IsNotExistMkDir(src string) error

如果目录不存在,则创建一个目录

func MkAll

func MkAll(src, filename string) error

创建文件

func MkDir

func MkDir(src string) error

创建目录

func MustOpen

func MustOpen(fileName, filePath string) (*os.File, error)

打开文件

func Open

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

根据特定模式打开文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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