modify the directory and the ignore file