Sort files into directories. New header.