files

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentPath = getCurrentPath()

Functions

func CopyFile

func CopyFile(src, dst string) bool

CopyFile 拷贝文件

func CopyPath

func CopyPath(src, dst string) bool

CopyPath 拷贝目录

func CreateDir

func CreateDir(filePath string) error

func DirDot

func DirDot() string

func FileExists

func FileExists(path string) (bool, error)

func GetCurrentDirectory

func GetCurrentDirectory() string

func GetFileInfo

func GetFileInfo(src string) os.FileInfo

GetFileInfo 获取文件信息

func IsNotExistMkDir

func IsNotExistMkDir(src string) error

IsNotExistMkDir create a directory if it does not exist

func MkDir

func MkDir(src string) error

MkDir create a directory

func PathExists

func PathExists(path string) (bool, error)

func RemoveFile

func RemoveFile(filePath string) error

func WriteFile

func WriteFile(filePath string, content 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