removingLastComponent() The path except for the last path component. Declarationfunc removingLastComponent() -> Path