replace the directory with a renamed file
