Put the segmented files into given dir.