gfile

package
v1.0.109 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(pathname string) bool

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

func IsDir

func IsDir(pathname string) bool

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

func MkDir

func MkDir(dirname string) error

MkDir 创建目录

func MkDirIfNotExists

func MkDirIfNotExists(dirname string) error

MkDirIfNotExists 创建目录

func ReadFile

func ReadFile(pathname string) []byte

ReadFile 读取文件

func Remove

func Remove(pathname string) error

Remove 删除文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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