mkdir

Creates a new directory with a specified mode

Local Servers:blocking
Remote Servers:blocking
Classification:POSIX
Platform:NLM
Service:File System

Syntax

   #include <stat.h>  
    
   int mkdir (  
      const char  *path);
   

Parameters

path

(IN) Points to the path containing the new directory (either relative to the current working directory or an absolute path name).

Return Values

Returns a value of 0 if successful, nonzero otherwise.

Remarks

mkdir also works on the DOS partition.

The current connection must have Create rights in the parent directory. The inherited rights mask for the new directory is ALL rights.

The SetCurrentNameSpace function sets the name space used for parsing the path input to mkdir.

For NetWare versions before 4.x, mkdir works with only the DOS name space for remote servers.

See Also

chdir, getcwd, rmdir