fileU

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExist

func FileExist(filePath string) (bool, error)

文件是否存在

func FileReadAllContent

func FileReadAllContent(path string) ([]byte, error)

读取文件的所有内容

func FileReadAllContentThrow

func FileReadAllContentThrow(path string) []byte

读取文件的所有内容,如有异常自动抛出

func GetFileSize

func GetFileSize(filePath string) (int64, bool)

读取文件大小

func IsExistDir

func IsExistDir(dirPath string) (bool, error)

目录是否存在

func MkDir

func MkDir(dirPath string) error

创建文件夹

func MkFile

func MkFile(filePath string) error

创建文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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