SDL_CreateDirectory(3)
π SDL_CreateDirectory π
okay bestie, welcome to the SDL_CreateDirectory page from the SDL3 FUNCTIONS corner of the manual β¨ this is the one that makes folders for you, no cap π
πΈ NAME πΈ
SDL_CreateDirectory β make a directory, and like, all the missing parent directories too π«Ά she's thorough.
β¨ SYNOPSIS β¨
#include <SDL3/SDL_filesystem.h>
bool SDL_CreateDirectory(const char *path);
π¦ DESCRIPTION π¦
so here's the tea β this one reports success if path already exists as a directory β like, she's not gonna be dramatic about it, if it's already there she's chill π
and if the parent directories are missing? she makes those too π₯ it's giving "I'll handle it, don't worry about it" main character energy π
but listen β if this fails, it will not remove any parent directories it already made π so yeah, partial results can stick around. no takebacks, fr fr.
π FUNCTION PARAMETERS π
pathβ the path of the directory to create π
β RETURN VALUE β
returns true on success or false on failure π and if it fails, call SDL_GetError() for more info, iykyk π
π§ THREAD SAFETY π§
it is safe to call this function from any thread π«Ά go off, multithreaded queen π
π₯ AVAILABILITY π₯
this function is available since SDL 3.2.0 β
mwah π that's the whole page bestie. go create some directories, you got this π
β brought to you by Simple Directmedia Layer, from SDL 3.4.18, dated SDL_CreateDirectory(3) πΈ slay responsibly β¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms