Documentation ¶
Overview ¶
This package provides a simple way to represent a path value and perform common operations on it. All the functions expected with `path/filepath` are provided. The reason for using this over a simple string is that it allows Vagrant to modify the format of the path on demand. For example, if we wanted to reference all paths on Windows via UNC, or short names, or msys2, we simply have to enable it here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Path ¶
type Path interface { Abs() (Path, error) String() string Base() Path Clean() Path Dir() Path EvalSymLinks() (Path, error) Exists() bool Ext() string FromSlash() Path HasPrefix(string) bool IsAbs() bool IsRoot() (bool, error) Join(...string) Path Parent() Path SameFile(Path) (bool, error) Split() (Path, string) SplitList() []string ToSlash() string VolumeName() string Walk(filepath.WalkFunc) error }
Click to show internal directories.
Click to hide internal directories.