LibHTTP API Reference

December 16, 2016 · View on GitHub

httplib_mkdir( path, mode );

Parameters

ParameterTypeDescription
pathconst char *A pointer to name of the directory to create
modeconst char *The security attributes to be assigned to the directory

Return Value

TypeDescription
intAn integer which indicates success or failure of the call

Description

The function httplib_mkdir() provides an independent way to creare a directory on a system. The function uses the Posix mkdir() function in environments where that function is supported or emulates that function with own code for other operating systems. Please note that the mode parameter resembles the *nix security attributes known for files and directories. On systems which do not support that—most notably Windows based systems—the mode parameter is silently ignored.

The httplib_mkdir() function returns 0 when it was successful and -1 when an error occured.

See Also