Returns the canonical path of the input path. If a directory a trailing slash is always used.
getCanonicalPath(path) → returns string
getCanonicalPath(path)
→ returns string