Use Foundation's built-in routine for removing last path component.
Use Foundation's built-in routine for removing last path component.

mz2/KSFileUtilities,karelia/KSFileUtilities,paulkite/KSFileUtilities