# Getting current content browser folder

**URL:** <https://forums.unrealengine.com/t/getting-current-content-browser-folder/123303>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [March 8, 2019, 5:57pm UTC](https://forums.unrealengine.com/t/getting-current-content-browser-folder/123303 "2019-03-08T17:57:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Code\_Goblin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Code\_Goblin](https://forums.unrealengine.com/u/Code_Goblin)\
**Post date:** [March 8, 2019, 5:57pm UTC](https://forums.unrealengine.com/t/getting-current-content-browser-folder/123303/1 "2019-03-08T17:57:48Z")

</div>

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:

```auto

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](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/f/7fe7193267917fe072cc94870e6bb4e0528e6f65.jpeg)

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

---

<div class="post-metadata">

**Author:** ![chibitotoro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chibitotoro/32/1224468_2.png) [@chibitotoro](https://forums.unrealengine.com/u/chibitotoro)\
**Post date:** [December 30, 2022, 2:16am UTC](https://forums.unrealengine.com/t/getting-current-content-browser-folder/123303/3 "2022-12-30T02:16:08Z")

</div>

TLDR: `unreal.EditorUtilityLibrary.get_current_content_browser_path()` will get you the current content browser path in python

After doing a bunch of research I think I’ve figured out the strategy to solve this and other related functions.

Turns out there are a lot of functions in C++ that aren’t actually documented on their python API webpage even in the latest 5.1 documentation.

However, since C++ functions with UFUNCTION decorators are mostly exposed to python, the strategy is to print out all the functions in a given module in python by using the following for example:

```auto
for _ in sorted(dir(unreal)):
    print(_)

```

This will get your a sorted list of all the functions.

By using:

```auto
for _ in sorted(dir(unreal.EditorUtilityLibrary)):
    print(_)

```

You will see the get\_current\_content\_browser\_path pure function in the list. In terms of what argments and returns you can get, you can probably refer to the C++ source to get a good idea.

---

<div class="post-metadata">

**Author:** ![Code\_Goblin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Code\_Goblin](https://forums.unrealengine.com/u/Code_Goblin)\
**Post date:** [January 16, 2023, 3:19pm UTC](https://forums.unrealengine.com/t/getting-current-content-browser-folder/123303/4 "2023-01-16T15:19:32Z")

</div>

@chibitotoro I’ve only just seen this. Thank you so much for posting this answer.

It turns out that, almost 4 years after making the original post, today I once again needed a way to do this. So I actually ended up finding my post, and your answer, as the result of a google search 😆

Unfortunately that function doesn’t work for me as it doesn’t seem to exist in 4.27, which is the version of Unreal I’m using at work. I’m assuming it got added in 5 or 5.1.

Still, your method for getting a list of functions is very clever, and I’m sure it’ll come in very handy in the future. So thank you again!

---

<div class="post-metadata">

**Author:** ![HorBaiYang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HorBaiYang](https://forums.unrealengine.com/u/HorBaiYang)\
**Post date:** [July 12, 2024, 2:41am UTC](https://forums.unrealengine.com/t/getting-current-content-browser-folder/123303/5 "2024-07-12T02:41:58Z")

</div>

Yes, this is brilliant 😃
