private static string GetFileExtentsion(string filePath) { return filePath.Substring(filePath.LastIndexOf('.') + 1); }