fs

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirs added in v0.16.0

func CreateDirs(path string) error

CreateDirs 创建文件夹

func GetFilePaths

func GetFilePaths(loadFilePattern string, excludedPatterns ...string) ([]string, error)

GetFilePaths 返回匹配的文件路径列表

func IsExist added in v0.16.0

func IsExist(path string) bool

IsExist 判断路径是否存在

func LoadFile

func LoadFile(filePath string) []byte

LoadFile 加载文件

func SaveFile

func SaveFile(path string, data []byte) error

SaveFile A function that saves a file to a given path, overwriting it if it exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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