store the files in each dir.