normalize

Get a relative path that is this relative 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 when there is one.

Return

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