use webentity to loop through files