workdir

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Workdir

type Workdir struct {
	Base string
	Cwd  string
	// contains filtered or unexported fields
}

func NewWorkdir

func NewWorkdir(base string) *Workdir

func (*Workdir) Close

func (env *Workdir) Close()

Placeholder, close

func (*Workdir) Exists

func (env *Workdir) Exists(filename string) bool

func (*Workdir) GetCwd

func (env *Workdir) GetCwd() string

func (*Workdir) GetRoot

func (env *Workdir) GetRoot() *Workdir

func (*Workdir) Goto

func (env *Workdir) Goto(dir ...string) *Workdir

func (*Workdir) IsDir

func (env *Workdir) IsDir(filename string) bool

func (*Workdir) IsFile

func (env *Workdir) IsFile(filename string) bool

func (*Workdir) IterFiles

func (env *Workdir) IterFiles(dir string, handler func(*file.File) error) (err error)

func (*Workdir) MkdirAll

func (env *Workdir) MkdirAll(filename string, perm os.FileMode) (err error)

func (*Workdir) Path

func (env *Workdir) Path(filename string) string

func (*Workdir) ReadDir

func (env *Workdir) ReadDir(filename string) ([]os.FileInfo, error)

func (*Workdir) ReadFile

func (env *Workdir) ReadFile(filename string) ([]byte, error)

func (*Workdir) Rebase

func (env *Workdir) Rebase() (sub *Workdir)

func (*Workdir) Remove

func (env *Workdir) Remove(filename string) error

func (*Workdir) RemoveCwd

func (env *Workdir) RemoveCwd() error

func (*Workdir) Spawn

func (env *Workdir) Spawn() (sub *Workdir)

func (*Workdir) Split

func (env *Workdir) Split() (dir, file string)

func (*Workdir) Stat

func (env *Workdir) Stat(filename string) (os.FileInfo, error)

func (*Workdir) WriteFile

func (env *Workdir) WriteFile(filename string, data []byte, perm os.FileMode) (err error)

Jump to

Keyboard shortcuts

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