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 is
  • create_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