folder - php clear + parent()-loop to closest

Not tested :)