fsutil

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 6 Imported by: 110

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

FileExists reports whether the named file or directory exists. Deprecated

please use PathExists() or IsFile() instead it

func IsAbsPath

func IsAbsPath(filepath string) bool

IsAbsPath is abs path.

func IsDir added in v0.2.1

func IsDir(path string) bool

IsDir reports whether the named directory exists.

func IsFile added in v0.2.1

func IsFile(path string) bool

IsFile reports whether the named file or directory exists.

func IsZipFile

func IsZipFile(filepath string) bool

IsZipFile check is zip file. from https://blog.csdn.net/wangshubo1989/article/details/71743374

func Mkdir added in v0.2.2

func Mkdir(name string, perm os.FileMode) error

Mkdir alias of os.Mkdir()

func PathExists added in v0.2.1

func PathExists(path string) bool

PathExists reports whether the named file or directory exists.

func Unzip

func Unzip(archive, targetDir string) (err error)

Unzip a zip archive from https://blog.csdn.net/wangshubo1989/article/details/71743374

Types

This section is empty.

Jump to

Keyboard shortcuts

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