Macaw OS C reference

Function makefolder

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

Makes a new folder. It makes one at a time, so the folder it goes in has to be there already.

Parameters

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

Returns int

1 if it made the folder, or 0 if it couldn't, for example because it's already there.

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