gofiles

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 4 Imported by: 0

README

Golang Files

📦 Golang Files

godoc goproxy.cn goreportcard.com deps.dev

安装

go get -v -u go.dtapp.net/gofiles

Documentation

Index

Constants

View Source
const Version = "1.0.1"

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

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