canonicalPath property

String get canonicalPath

Canonicalizes path.

This is guaranteed to return the same path for two different input paths if and only if both input paths point to the same location. Unlike normalize, it returns absolute paths when possible and canonicalizes ASCII case on Windows.

Note that this does not resolve symlinks.

Implementation

String get canonicalPath => p.canonicalize(path);