fileutils

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MulanPSL-2.0 Imports: 7 Imported by: 50

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfigFileExist

func CheckConfigFileExist(root, f string) bool

func CheckFileExist

func CheckFileExist(filename string) bool

func Dir added in v1.0.405

func Dir(pathfile string) string

func FindRootDir

func FindRootDir() string

func FindRootDirGoMod added in v1.0.60

func FindRootDirGoMod() string

func FindRootPkg added in v1.0.112

func FindRootPkg() string

func GetCurPath

func GetCurPath() string

func GetPkg added in v1.0.112

func GetPkg(pkgPath string) (*build.Package, error)

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 ReadSubDirs added in v1.0.602

func ReadSubDirs(rootPath string) ([]string, error)

func SetRootPkgEnv added in v1.0.112

func SetRootPkgEnv(p string)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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