Try NSPathUtilities.