place files into directories