---
name: "al_make_directory"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_make_directory"
---

# al\_make\_directory(3)

Allegro 5 API

## NAME

al\_make\_directory - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_make_directory(const char *path)
  ```

## DESCRIPTION

Creates a new directory on the filesystem. This function also creates any parent directories as needed.

Returns true on success (including if the directory already exists), otherwise returns false on error. Fills in Allegro’s errno to indicate the error.

## SEE ALSO

[al\_get\_errno(3)](/al_get_errno/3.md)
