Documentation for method resolve, assembled from the following types:
method resolve(IO::Path: : --> IO::Path)
Returns a new
IO::Path object with all symbolic links and references to the parent directory (
..) resolved. This means that the filesystem is examined for each directory in the path, and any symlinks found are followed.
# bar is a symlink pointing to "/baz"my = "foo/./bar/..".IO.resolve; # now "/" (the parent of "/baz")
:$completely, which defaults to
False, is set to a true value, the method will
X::IO::Resolve if it cannot completely resolve the path, otherwise, it will resolve as much as possible, and will merely perform
cleanup of the rest of the path. The last part of the path does NOT have to exist to
:$completely resolve the path.
NOTE: Currently (April 2017) this method doesn't work correctly on all platforms, e.g. Windows, since it assumes POSIX semantics.