change a file and add a directory