utils

package
v0.0.0-...-e35a73b Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(files []*os.File, dest string) error

压缩文件 files 文件数组,可以是不同dir下的文件或者文件夹 dest 压缩文件存放地址

func Daemonize

func Daemonize(commandName string, params []string) bool

func DeCompress

func DeCompress(zipFile, dest string) error

解压

func DirSizeB

func DirSizeB(path string) (int64, error)

getFileSize get file size by path(B)

func ExecCommand

func ExecCommand(commandName string, params []string) bool

func Exist

func Exist(filename string) bool

func Exists

func Exists(path string) bool

判断所给路径文件/文件夹是否存在

func IsDir

func IsDir(path string) bool

判断所给路径是否为文件夹

func IsFile

func IsFile(path string) bool

判断所给路径是否为文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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