string GetFolder(value)Extracts the folder from the path