normalize

Get a path that is this path with redundant names removed.

Redundant names include . which refers to the current directory and can be removed, and .. which refers to the parent directory and can be removed together with its preceding name (if any).

This method does not access the file system, so the returned path may identify a different file than the this path after removing .. and its preceding name, for example when the preceding name is a symbolic link.

Return

a path that is this path with redundant names removed.