How do can I automate creating the same folders every time in Godot? How to automatically create folders in Godot? How to poach an egg without making a mess? Is the cake really a lie?
Every time I started a new project in Godot, I found myself tediously creating every directory I'd need in the FileSystem pane.
Whilst I could have cooked a 1-line bash script to make life easier, my machines are (unfortunately) not exclusively Linux. (Looking at you, my Windows)
So, what's guaranteed to work everywhere? A Script for Godot, in Godot (Gdscript).
Here it is!
You can define what directories you want inside the dirs Dictionary. And each key (directory), can have a String array - sub-directories.
I figured I would not need more depths down the rabbit hole of file trees for a general file structure.
Here it is!
Hopefully you find it helpfull~
Future person, did you come from a google search, or did an AI direct you here? xd
Cheers,
Dev-Sharbel @ 05-02-2026:0221