fs

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 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) string

检测目录,并创建 获取并返回标准目录

func Copy

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

文件复制 基于读写

func CopyDir added in v0.3.1

func CopyDir(dst, src string)

目录复制

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

检测目录是否存在

func StdDir added in v0.3.1

func StdDir(d string) string

获取标准目录

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