Documentation
¶
Overview ¶
Package realpath implements the GNU realpath utility.
It canonicalizes each operand to a name with no symbolic links, "." or ".." components, or repeated separators. The resolution goes through the runtime file system, so in file systems without an absolute root, like a memory one, the resolved names are relative to the file system root.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Canonicalize ¶
Canonicalize resolves name, relative to the root of the file system, to a name with no symbolic links, "." or ".." components, or repeated separators, following the symbolic links it holds. The name is used as given, without being joined to any working directory. It fails when a component the mode requires to exist doesn't, or when the symbolic links loop.
Types ¶
type Options ¶
type Options struct {
Mode Mode
}
Options holds the canonicalization mode of Canonicalize.