Consider the following code:
If the program happens to find a file without extension it will mistaken it for a folder. How do I make sure if the entry read is actually a folder?
I believe you do al_get_fs_entry_mode(current_file) & ALLEGRO_FILEMODE_ISDIR.
It worked! Thank you.