A French court has rejected a bid to close the 72 eateries and shops in the makeshift migrant camp in the northern port city of Calais, but the prefecture says it will continue inspections and legal action against what it calls a dangerous underground economy.

The Lille court turned down on Friday the demand of the Prefecture of the Pas de Calais region, the state representative, to close the operations which humanitarian organizations contend are a lifeline for the migrants, estimated at over 7,000 in the camp.

A statement by the prefecture said the installations don't respect sanitation rules, risk fires and are a source of public disorder.

The state provides free meals, but aid groups say not enough.