std.fs.realpath

std.fs

realpath(path) -> path, err

Resolve a path to its canonical form

Returns the absolute path with every symlink, . and .. resolved. Wraps realpath(3). Every component must exist. A relative path resolves against the working directory. A loop of links fails.