add a new file and rename a existing file.