Split up all files into directories