Restructuring of files