canonicalize method
Returns the canonical, absolute form of the path with all intermediate components normalized.
Implementation
Path canonicalize() => isWindows
? Path(WindowsPath(_string).canonicalize()._string)
: Path(UnixPath(_string).canonicalize()._string);