SDL_PathInfo(3type)
πΈ NAME πΈ
okay so bestie, you just opened the SDL_PathInfo(3type) page from the SDL3 DATATYPES section, and it's literally all about the 411 on a path in your filesystem π
SDL_PathInfo β information about a path on the filesystem. that's the whole vibe. it's giving "tell me everything about this file/folder" and honestly? iconic. π«Ά
β¨ SYNOPSIS β¨
#include <SDL3/SDL_filesystem.h>
typedef struct SDL_PathInfo
{
SDL_PathType type; /**< the path type */
Uint64 size; /**< the file size in bytes */
SDL_Time create_time; /**< the time when the path was created */
SDL_Time modify_time; /**< the last time the path was modified */
SDL_Time access_time; /**< the last time the path was read */
} SDL_PathInfo;
so this struct is like a little info card for a path, and every field is doing its own main character thing:
typeβ the path type (file? folder? something else? it's in there) πsizeβ the file size in bytes, so you know how chunky it iscreate_timeβ the time when the path was created, its birthday fr fr πmodify_timeβ the last time the path was modified, aka its last glow-up β¨access_timeβ the last time the path was read, lowkey its last "seen at" timestamp π
all wrapped up as SDL_PathInfo, periodt.
π AVAILABILITY π
this datatype is available since SDL 3.2.0. no cap, it's been around since then. π¦
π¦ SEE ALSO π¦
if you wanna go deeper, these are the besties you should also check out:
and that's the whole page, babe π brought to you by Simple Directmedia Layer, version SDL 3.4.18. now go get that path info and slay π
π
π¦ 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