gofiles

package
v1.0.196 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(path string) error

CreateDir 创建目录

func CreateFile

func CreateFile(fileName string) (bool, error)

CreateFile 创建文件

func CreateFiles

func CreateFiles(path string, perm int) (bool, error)

CreateFiles 创建文件夹

func DeleteFile

func DeleteFile(pathName string) (bool, error)

DeleteFile 删除文件

func DeletesFiles

func DeletesFiles(path string) (bool, error)

DeletesFiles 删除文件夹

func DirExist

func DirExist(path string) (bool, error)

DirExist 判断目录是否存在,存在返回 true

func ExistFile

func ExistFile(pathName string) (bool, error)

ExistFile 判断文件是否存在

func ExistFiles

func ExistFiles(path string) (bool, error)

ExistFiles 判断文件夹是否存在

func FileSize added in v1.0.47

func FileSize(s uint64) string

FileSize 计算文件大小并生成用户友好的字符串。

Types

This section is empty.

Jump to

Keyboard shortcuts

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