---
name: "al_open_directory"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_open_directory/3alleg5"
---

# al\_open\_directory(3alleg5)

Allegro 5 API

## NAME

al\_open\_directory - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_open_directory(ALLEGRO_FS_ENTRY *e)
  ```

## DESCRIPTION

Opens a directory entry object. You must call this before using al\_read\_directory(3alleg5) on an entry and you must call al\_close\_directory(3alleg5) when you no longer need it.

Returns true on success.

## SEE ALSO

al\_read\_directory(3alleg5), al\_close\_directory(3alleg5)
