filesystem: SDL_CreateDirectory should make parent directories.

Fixes #10502.
This commit is contained in:
Ryan C. Gordon
2024-09-27 15:27:55 -04:00
parent 94030131de
commit 428f2f35be
2 changed files with 57 additions and 3 deletions

View File

@@ -249,7 +249,12 @@ typedef Uint32 SDL_GlobFlags;
#define SDL_GLOB_CASEINSENSITIVE (1u << 0)
/**
* Create a directory.
* Create a directory, and any missing parent directories.
*
* This reports success if `path` already exists as a directory.
*
* If parent directories are missing, it will also create them. Note that
* if this fails, it will not remove any parent directories it already made.
*
* \param path the path of the directory to create.
* \returns true on success or false on failure; call SDL_GetError() for more