Function SDL_GetPathInfo

pub unsafe extern "C" fn SDL_GetPathInfo(
    path: *const i8,
    info: *mut SDL_PathInfo,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Get information about a filesystem path.

§Parameters

  • path: the path to query.
  • info: a pointer filled in with information about the path, or NULL to check for the existence of a file.

§Return value

Returns true on success or false if the file doesn’t exist, or another failure; call SDL_GetError() for more information.

§Availability

This function is available since SDL 3.2.0.