---
name: "SDL_OpenFileStorage"
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_OpenFileStorage"
---

# SDL\_OpenFileStorage(3)

Opens up a container for local filesystem storage.

## NAME

SDL\_OpenFileStorage - Opens up a container for local filesystem storage.

## HEADER FILE

Defined in SDL3/SDL\_storage.h

## SYNOPSIS

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

**SDL\_Storage \* SDL\_OpenFileStorage(const char \*path);**

## DESCRIPTION

This is provided for development and tools. Portable applications should use  **SDL\_OpenTitleStorage** () for access to game data and  **SDL\_OpenUserStorage** () for access to user data.

## FUNCTION PARAMETERS

- *path*

  the base path prepended to all storage paths, or NULL for no base path.

## RETURN VALUE

( **SDL\_Storage**\
  \*) Returns a filesystem storage container on success or NULL on failure; call  **SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CloseStorage**(3)](/SDL_CloseStorage/3.md), **•**(3), [**SDL\_GetStorageFileSize**(3)](/SDL_GetStorageFileSize/3.md), **•**(3), [**SDL\_GetStorageSpaceRemaining**(3)](/SDL_GetStorageSpaceRemaining/3.md), **•**(3), [**SDL\_OpenTitleStorage**(3)](/SDL_OpenTitleStorage/3.md), **•**(3), [**SDL\_OpenUserStorage**(3)](/SDL_OpenUserStorage/3.md), **•**(3), [**SDL\_ReadStorageFile**(3)](/SDL_ReadStorageFile/3.md), **•**(3), [**SDL\_WriteStorageFile**(3)](/SDL_WriteStorageFile/3.md)
