fileutil

package
v0.0.0-...-b9dd322 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatedDir

func CreatedDir(dir string) error

创建文件夹

func DirExists

func DirExists(dirname string) bool

判断目录是否存在

func Exists

func Exists(name string) bool

判断档案是否存在

func FileExists

func FileExists(filename string) bool

判断文件是否存在

func RemoveDir

func RemoveDir(dir string) bool

移除文件夹

func Tar

func Tar(src string, dstTar string, failIfExist bool) (err error)

将文件或目录打包成 .fileutil 文件 src 是要打包的文件或目录的路径 dstTar 是要生成的 .fileutil 文件的路径 failIfExist 标记如果 dstTar 文件存在,是否放弃打包,如果否,则会覆盖已存在的文件

func UnTar

func UnTar(srcTar string, dstDir string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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