File restructuring