canonicalize

expect abstract fun canonicalize(path: Path): Path

Resolves path against the current working directory and symlinks in this file system. The returned path identifies the same file as path, but with an absolute path that does not include any symbolic links.

This is similar to File.getCanonicalFile() on the JVM and realpath on POSIX. Unlike File.getCanonicalFile(), this throws if the file doesn't exist.

Throws

if path cannot be resolved. This will occur if the file doesn't exist, if the current working directory doesn't exist or is inaccessible, or if another failure occurs while resolving the path.

actual abstract fun canonicalize(path: Path): Path
actual abstract fun canonicalize(path: Path): Path
actual abstract fun canonicalize(path: Path): Path
actual abstract fun canonicalize(path: Path): Path