Switch current dir of the folder view correctly with dir tree view in the side pane.