fs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	V_EnvPath = "path"
)

Variables

This section is empty.

Functions

func AddEnvPath added in v0.3.0

func AddEnvPath(paths ...string) error

设置环境变量

func CheckDir added in v0.2.1

func CheckDir(dir string)

检测目录,并删除

func Copy

func Copy(dstFile, srcFile string) (bool, error)

文件复制 基于读写

func DelEnvPath added in v0.3.0

func DelEnvPath(paths ...string) error

删除环境变量

func EnvPath added in v0.3.0

func EnvPath() []string

获取项目路径

func IsDir added in v0.3.0

func IsDir(dir string) bool

检测目录是否存在

Types

type FsReaderWriter

type FsReaderWriter struct {
	// contains filtered or unexported fields
}

func (*FsReaderWriter) Error

func (f *FsReaderWriter) Error() string

func (*FsReaderWriter) Read

func (f *FsReaderWriter) Read(p []byte) (n int, err error)

func (*FsReaderWriter) Write

func (f *FsReaderWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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