fileutils

package
v1.0.201 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MulanPSL-2.0 Imports: 9 Imported by: 50

Documentation

Index

Constants

View Source
const FILE_GOMOD = "go.mod"

Variables

This section is empty.

Functions

func CheckConfigFileExist

func CheckConfigFileExist(root, f string) bool

func CheckFileExist

func CheckFileExist(filename string) bool

func FindRootDir

func FindRootDir() string

func FindRootDirGoMod added in v1.0.60

func FindRootDirGoMod() string

func GetCurPath

func GetCurPath() string

func GetPkgAllFilesPath added in v1.0.91

func GetPkgAllFilesPath(pkgPath string) ([]string, error)

获取第三方包下所有文件的相对路径

func GetPkgPath added in v1.0.91

func GetPkgPath(pkgPath string) (string, error)

func TryFileExist

func TryFileExist(filename string) bool

func UnZip

func UnZip(zipFile string, destPath string) error

func Zip

func Zip(srcPath string, destFile 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