Split files into folders