files

package
v0.0.0-...-1272ae6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(filePath string) (bool, error)

检查一个文件是否存在 @param filePath 文件路径

func FileMd5

func FileMd5(path string) (string, error)

获取一个文件的md5值 @param path 文件路径

func FolderExists

func FolderExists(path string, isCreate bool) (bool, error)

检查一个文件夹是否存在 若不存在运行自行创建 @param path 文件夹路径 @param isCreate 若文件夹不存在,是否自动创建

func ReadFolder

func ReadFolder(path string, isRecursive bool) []string

获取一个路径下的全部文件 @param path 读取路径 @param isRecursive 是否递归读取

func WriterFile

func WriterFile(path string, content []byte) error

向一个路径中写入文件 @param path 文件路径 @param content 文件内容

func WriterFileByAppend

func WriterFileByAppend(path string, content []byte) error

向一个路径中追加写入文件 @param path 文件路径 @param content 文件内容

Types

This section is empty.

Jump to

Keyboard shortcuts

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