Allegro 5 api
#include <allegro5/allegro.h> uint32_t al_get_fs_entry_mode(ALLEGRO_FS_ENTRY *e)
Returns the entry\[aq]s mode flags, i.e. permissions and whether the entry refers to a file or directory.
al_get_errno(3alleg5), ALLEGRO_FILE_MODE(3alleg5)