# python command to get the contents of a folder in the content browser?

**URL:** <https://forums.unrealengine.com/t/python-command-to-get-the-contents-of-a-folder-in-the-content-browser/149031>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [August 11, 2020, 5:03pm UTC](https://forums.unrealengine.com/t/python-command-to-get-the-contents-of-a-folder-in-the-content-browser/149031 "2020-08-11T17:03:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkczar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darkczar](https://forums.unrealengine.com/u/darkczar)\
**Post date:** [August 11, 2020, 5:03pm UTC](https://forums.unrealengine.com/t/python-command-to-get-the-contents-of-a-folder-in-the-content-browser/149031/1 "2020-08-11T17:03:29Z")

</div>

I want to process a bunch of particle systems with my python script. Is there a python command in the unreal module that will return the contents of a given folder of the contents browser?

---

<div class="post-metadata">

**Author:** ![darkczar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darkczar](https://forums.unrealengine.com/u/darkczar)\
**Post date:** [August 11, 2020, 6:07pm UTC](https://forums.unrealengine.com/t/python-command-to-get-the-contents-of-a-folder-in-the-content-browser/149031/2 "2020-08-11T18:07:15Z")

</div>

Note to self: This guy gets it…unreal.AssetRegistryHelpers are what I need…

[http://www.chrisevans3d.com/pub\_blog…ts-ue4-python/](http://www.chrisevans3d.com/pub_blog/asset-registry-finding-iterating-assets-ue4-python/)

---

<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:33am UTC](https://forums.unrealengine.com/t/python-command-to-get-the-contents-of-a-folder-in-the-content-browser/149031/3 "2022-12-30T02:33:00Z")

</div>

With `unreal.EditorUtilityLibrary.get_current_content_browser_path()` you’re able to get the currently open folder in the content browser. From there you can use `os.listdir()` to grab the list of all the raw files on disk in that folder.

The returned path will be an editor asset path (ie. `/Game/Blueprints` [which actually sits in `/Content/Blueprints`] or `/PluginName/Blueprints` [which actually sits in `/Plugins/PluginName/Content`]). You will need to do some path wrangling with `unreal.Paths` to convert beween disk paths and asset paths.
