put files in directories