Versions in this module Expand all Collapse all v0 v0.0.0 Jul 25, 2018 Changes in this version + type Workdir struct + Base string + Cwd string + func NewWorkdir(base string) *Workdir + func (env *Workdir) Close() + func (env *Workdir) Exists(filename string) bool + func (env *Workdir) GetCwd() string + func (env *Workdir) GetRoot() *Workdir + func (env *Workdir) Goto(dir ...string) *Workdir + func (env *Workdir) IsDir(filename string) bool + func (env *Workdir) IsFile(filename string) bool + func (env *Workdir) IterFiles(dir string, handler func(*file.File) error) (err error) + func (env *Workdir) MkdirAll(filename string, perm os.FileMode) (err error) + func (env *Workdir) Path(filename string) string + func (env *Workdir) ReadDir(filename string) ([]os.FileInfo, error) + func (env *Workdir) ReadFile(filename string) ([]byte, error) + func (env *Workdir) Rebase() (sub *Workdir) + func (env *Workdir) Remove(filename string) error + func (env *Workdir) RemoveCwd() error + func (env *Workdir) Spawn() (sub *Workdir) + func (env *Workdir) Split() (dir, file string) + func (env *Workdir) Stat(filename string) (os.FileInfo, error) + func (env *Workdir) WriteFile(filename string, data []byte, perm os.FileMode) (err error)