filex

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDir added in v1.1.6

func CheckDir(path string) bool

CheckDir 判断文件目录否存在

func GetPath added in v1.1.6

func GetPath() string

GetPath 获取项目路径

func MkdirDir added in v1.1.6

func MkdirDir(path string) error

MkdirDir 创建文件夹,支持x/a/a 多层级

func Read

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

func RemoveDir added in v1.1.6

func RemoveDir(filePath string) error

RemoveDir 删除文件

func Write

func Write(path string, b []byte, isAppend bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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