canonicalizePath method
If the path path
is a relative path, convert it to an absolute path
by interpreting it relative to this folder. If it is already an absolute
path, then don't change it.
However, regardless of whether path
is relative or absolute, normalize
it by removing path components of the form '.' or '..'.
Implementation
@override
String canonicalizePath(String path) {
return p.canonicalize(path);
}