package
1.0.0
Repository: https://github.com/fzf-labs/futil.git
Documentation: pkg.go.dev

# README

文件操作

# Functions

BatchMkDir 批量创建文件夹.
CopyFile 复制文件.
DownloadFile 会将url下载到本地文件,它会在下载时写入,而不是将整个文件加载到内存中。.
Ext 文件扩展名.
No description provided by the author
IsAbsPath 是否是相对路径.
IsDir 检查是否是目录.
IsFile 检查是否是文件.
IsImageFile 检查文件是图像文件.
IsPathExists 检查文件或目录是否存在。.
IsZipFile 检查是zip文件 from https://blog.csdn.net/wangshubo1989/article/details/71743374.
MimeType 获取文件 Mime 类型名称。例如“image/png”.
Mkdir 创建文件夹.
Move 移动文件.
OpenFile 打开文件,但会自动创建目录。.
OpenReadFile 只读方式打开文件.
PrintDirAll 打印目录 example PrintDirAll("/Users/why/Desktop/go/test", 0).
QuickOpenFile 快速打开文件,目录不存在则会自动创建目录。.
ReadAllDirToMap 读取所有的文件夹形成一个map.
ReadAllDirToSli 读取所有的文件形成一个切片.
ReadAllFileToMap 读取所有的文件形成一个map.
ReadAllFileToSli 读取所有的文件形成一个切片.
ReadDeepFile 读取指定深度的文件.
ReaderMimeType 获取文件 Mime 类型名称.
ReaderMimeTypeAndExt 获取文件的mime和ext后缀(使用扩展包).
ReadFileByURLToByte 读取url中的文件,并转为[]byte格式.
ReadFileLineToSli 按行读取文件.
ReadFileToString 读取文件到string.
ReadURLFileLineToSli 按行读取url文件.
Remove 删除命名文件或 (空) 目录。.
No description provided by the author
Rename 重命名.
WriteContentAppend 数据写入,不存在则创建.
WriteContentCover 数据写入,不存在则创建.
WriteCsvCover 数据覆盖写入,不存在则创建.
WriteCsvDoubleSliCover 数据覆盖写入,不存在则创建.

# Variables

No description provided by the author
DefaultDirPerm 文件权限.
DefaultFileFlags 创建文件 只写 追加.
No description provided by the author
OnlyReadFileFlags 只读.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author