Rebuild the file structure