Tao.PhysFs SDK Documentation

Fs.PHYSFS_mkdir Method 

Create a directory.

[Visual Basic]
Public Shared Function PHYSFS_mkdir( _
   ByVal dirName As String _
) As Integer
[C#]
public static int PHYSFS_mkdir(
   string dirName
);

Parameters

dirName
New dir to create.

Return Value

nonzero on success, zero on error. Specifics of the error can be gleaned from PHYSFS_getLastError.

Remarks

This is specified in platform-independent notation in relation to the write dir. All missing parent directories are also created if they don't exist.

So if you've got the write dir set to "C:\mygame\writedir" and call PHYSFS_mkdir("downloads/maps") then the directories "C:\mygame\writedir\downloads" and "C:\mygame\writedir\downloads\maps" will be created if possible. If the creation of "maps" fails after we have successfully created "downloads", then the function leaves the created directory behind and reports failure.

See Also

Fs Class | Tao.PhysFs Namespace