should this ensure the provided path does not already end with a slash?