Change the current directory as the user browses the directory tree.