Macaw OS C reference

Function isfolder

#include <macaw.h>
int isfolder(const char *path);

Checks whether a path is a folder.

Parameters

pathconst char *
The path to check. A path without / at the start is from your program's folder.

Returns int

1 if it's a folder, or 0 if it's a file or isn't there.

In Folders and files, with fileexists, makefolder, listfolder, fileinfo.