---
name: "SDL_GetPathInfo"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetPathInfo"
---

# SDL\_GetPathInfo(3)

Get information about a filesystem path.

## NAME

SDL\_GetPathInfo - Get information about a filesystem path.

## HEADER FILE

Defined in SDL3/SDL\_filesystem.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_GetPathInfo(const char \*path, SDL\_PathInfo \*info);**

## FUNCTION 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.
