private static bool DoesFileNameHaveExtentsion(string filePath) { return filePath.LastIndexOf('.') != 0; }