Download

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:


unreal.SystemLibrary.get_project_content_directory()

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…

content_browser_path.jpg

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:
https://forums.unrealengine.com/development-discussion/c-gameplay-programming/62069-get-current-content-browser-path?p=589507#post589507