The award-winning Iranian director Mohammad Rasoulof has been sentenced to eight years in prison and lashings just ahead of his planned trip to the Cannes film festival, his lawyer said Thursday.