files

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(dirs ...string) (err error)

func CurrentDir

func CurrentDir() (string, error)

func FileMove

func FileMove(src string, dst string) (err error)

func GetFileModTime

func GetFileModTime(path string) int64

获取文件修改时间 返回unix时间戳

func PathExists

func PathExists(path string) (bool, error)

func ReadFileString

func ReadFileString(filePath string) string

读取文件

func ZipDir

func ZipDir(srcDir string, destZip string) error

srcFile could be a single file or a directory

func ZipFiles

func ZipFiles(filename string, files []string, oldform, newform string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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