Getting current content browser folder

Is there a way in Python to get the current/selected folder in the content browser?

The closest I’ve been able to get is:


which returns the system path to my project content folder. But what I want to get is the path to whatever folder I have selected in the content browser. Meaning…


I found this old post from back in 2015 where the OP was trying to do the same in C++. Judging by the last post in the thread, it seems he found some very roundabout way of getting the path. I don’t know C++ and I don’t quite understand the solution he describes, but I’m posting the link below in case it’s helpful to someone else: