SDL_PathType(3type)

πŸ’– SDL_PathType(3type) πŸ’–

okay bestie, so this is a page from the SDL3 DATATYPES section, and it's literally just about telling you what kind of thing a path is. that's it. that's the whole vibe. πŸ¦‹


✨ NAME ✨

SDL_PathType β€” types of filesystem entries. yes queen, we're categorizing.


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_filesystem.h>

typedef enum SDL_PathType
{
    SDL_PATHTYPE_NONE,      /**< path does not exist */
    SDL_PATHTYPE_FILE,      /**< a normal file */
    SDL_PATHTYPE_DIRECTORY, /**< a directory */
    SDL_PATHTYPE_OTHER      /**< something completely different like a device node (not a symlink, those are always followed) */
} SDL_PathType;

πŸ’… DESCRIPTION πŸ’…

so like, real talk: a filesystem has so many kinds of little guys living on it β€” devices, named pipes, all that. and this enum is not about to name every single one of them, no ma'am. right now, everything that isn't a file or a directory just gets reported as SDL_PATHTYPE_OTHER. 🫢

it's giving "we made a bucket and we put the weird ones in it." and honestly? iconic.


🌈 AVAILABILITY 🌈

this enum has been serving looks since SDL 3.2.0. periodt. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, no cap! this lil' datatype moment comes to you from Simple Directmedia Layer πŸ’–, rocking SDL 3.4.18 ✨ β€” mwah, love u, go categorize some paths πŸŽ€πŸ’…πŸŒΈ

πŸ“¦ where this page comes from