# UE4-27 Create new folder with Python in the World Outliner

**URL:** <https://forums.unrealengine.com/t/ue4-27-create-new-folder-with-python-in-the-world-outliner/561106>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 19, 2022, 2:12pm UTC](https://forums.unrealengine.com/t/ue4-27-create-new-folder-with-python-in-the-world-outliner/561106 "2022-05-19T14:12:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lvoos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lvoos](https://forums.unrealengine.com/u/lvoos)\
**Post date:** [May 19, 2022, 2:12pm UTC](https://forums.unrealengine.com/t/ue4-27-create-new-folder-with-python-in-the-world-outliner/561106/1 "2022-05-19T14:12:44Z")

</div>

I’m writing a Python script to be run in the UE 4.27. How can I create a new folder in the World Outliner from a python script? Didn’t find anything related in the unreal.EditorLevelLibrary.

---

<div class="post-metadata">

**Author:** ![EJaworenko1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ejaworenko1/32/575974_2.png) [@EJaworenko1](https://forums.unrealengine.com/u/EJaworenko1)\
**Post date:** [September 30, 2022, 4:39am UTC](https://forums.unrealengine.com/t/ue4-27-create-new-folder-with-python-in-the-world-outliner/561106/2 "2022-09-30T04:39:50Z")

</div>

This is pretty late, but this should do the trick I think (I’m using 5 but I imagine the command is the same) [unreal.Actor — Unreal Python 5.0 (Experimental) documentation](https://docs.unrealengine.com/5.0/en-US/PythonAPI/class/Actor.html?highlight=folder#unreal.Actor.set_folder_path)

---

<div class="post-metadata">

**Author:** ![Nekomuk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nekomuk](https://forums.unrealengine.com/u/Nekomuk)\
**Post date:** [May 24, 2023, 7:46am UTC](https://forums.unrealengine.com/t/ue4-27-create-new-folder-with-python-in-the-world-outliner/561106/3 "2023-05-24T07:46:46Z")

</div>

as to anyone who is new to the python scripting like i am:  
that command automatically creates a new folder if none existing is found  
the whole “only available in development builds” threw me off
