Put files in corresponding directories.