file_utils

package
v0.0.0-...-9d39b26 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfError

func CheckIfError(err error) bool

CheckIfError should be used to naively panics if an error is not nil.

func CopyDir

func CopyDir(srcPath string, destPath string) error

*

  • 拷贝文件夹,同时拷贝文件夹中的文件
  • @param srcPath 需要拷贝的文件夹路径: D:/test
  • @param destPath 拷贝到的位置: D:/backup/

func CopyFile

func CopyFile(src, dest string) (w int64, err error)

生成目录并拷贝文件

func Info

func Info(format string, args ...interface{})

func IsExist

func IsExist(path string) bool

检测文件夹路径时候存在

func MakeDir

func MakeDir(dir string)

创建文件夹

func MakeDirAll

func MakeDirAll(dir string)

递归创建文件夹

func Test

func Test()

Types

This section is empty.

Jump to

Keyboard shortcuts

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