I keep forgetting difference between filesPaneNavigate (which I want to use, i.e. move folder view to specified directory) and navigateToFile (which opens a file, and crashes the whole session if given a directory).
I can't be the only one, and Rstudio crashes with no way to rescue or no message if you feed a directory to navigateToFile (Ubuntu 22, rstudioapi 0.17.1)
If you want I can make a pull request for a simple dir check with abort ?