Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + func Copy(ctx context.Context, dst Path, src Path) error + func IsJunction(path Path) bool + func Junction(link, target Path) error + func Link(link, target Path) error + func Mkdir(dir Path) error + func Mkfile(p Path) error + func Move(dst, src Path) error + func Relink(link, target Path, method func(link, target Path) error) error + func Remove(f Path) error + func RemoveAll(f Path) error + func SanitizePath(p string) string + func Symlink(link, target Path) error + func Unzip(ctx context.Context, archive string, outputDir string) error + func ZIP(out io.Writer, in Path) error + type Path struct + func Abs(path string) Path + func ExecutablePath() Path + func FindExecutable(name string) (Path, error) + func Temp() (Path, error) + func (p *Path) Set(value string) error + func (p *Path) UnmarshalJSON(data []byte) error + func (p Path) Basename() string + func (p Path) ChangeExt(ext string) Path + func (p Path) Contains(other Path) bool + func (p Path) Exists() bool + func (p Path) Ext() string + func (p Path) Files() PathList + func (p Path) Glob(pattern ...string) PathList + func (p Path) Info() os.FileInfo + func (p Path) IsDir() bool + func (p Path) IsEmpty() bool + func (p Path) Join(join ...string) Path + func (p Path) MarshalJSON() ([]byte, error) + func (p Path) Matches(patterns ...string) bool + func (p Path) NoExt() Path + func (p Path) Parent() Path + func (p Path) RelativeTo(base Path) (string, error) + func (p Path) Slash() string + func (p Path) Smash() (Path, string, string) + func (p Path) Split() (Path, string) + func (p Path) SplitExt() (Path, string) + func (p Path) String() string + func (p Path) System() string + func (p Path) Timestamp() time.Time + func (p Path) URL() *url.URL + func (p Path) Walk(walkFn func(path Path, err error) error) error + type PathList []Path + func Paths(files ...Path) PathList + func SplitList(paths string) PathList + func (l *PathList) Set(value string) error + func (l PathList) Append(paths ...Path) PathList + func (l PathList) AsSet() PathSet + func (l PathList) Contains(path Path) bool + func (l PathList) Find(fragment string) Rooted + func (l PathList) Len() int + func (l PathList) Less(i, j int) bool + func (l PathList) Matching(patterns ...string) PathList + func (l PathList) NotMatching(patterns ...string) PathList + func (l PathList) RootOf(p Path) Rooted + func (l PathList) String() string + func (l PathList) Swap(i, j int) + type PathSet struct + func (s PathSet) Append(paths ...Path) PathSet + func (s PathSet) AsList() PathList + func (s PathSet) Contains(path Path) bool + func (s PathSet) Matching(patterns ...string) PathSet + func (s PathSet) NotMatching(patterns ...string) PathSet + func (s PathSet) RootOf(p Path) Rooted + func (s PathSet) Union(other PathSet) PathSet + type Rooted struct + Fragment string + Root Path + func Join(root Path, fragment string) Rooted + func (r Rooted) Path() Path Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021