file

package
v1.0.15-0...-55ead4f Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllFile

func GetAllFile(pathname string) (s []string, err error)

获取所有文件名,包含路径(相对路径)

func IsDir

func IsDir(path string) bool

func IsFile

func IsFile(path string) bool

func PathExists

func PathExists(path string) (bool, error)

1、如果返回的错误为nil,说明文件或文件夹存在 2、如果返回的错误类型使用os.IsNotExist()判断为true,说明文件或文件夹不存在 3、如果返回的错误为其它类型,则不确定是否在存在

Types

This section is empty.

Jump to

Keyboard shortcuts

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