canonicalizePath method Null safety
- String path
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 '..'.
String canonicalizePath(String path);