dirCreate
Method of
FileSyntax
int dirCreate( FileSpecObject dirToCreate );Parameters
The
dirCreatemethod has the following parameters:
A FileSpecObject representing the pathname of the directory to create.
Returns
An integer error code. For a list of possible values, see Return Codes.
Description
The input parameter is a FileSpecObject that you have already created with the Install object's getFolder method. The following simple example demonstrates the use of the
dirCreatemethod. Note that thegetFoldermethod does not require that the folder or directory you specify exist in order for the object reference to be a valid one.Example
f = getFolder("Program", "myNewDirectory");
err = File.dirCreate(f);
| Netscape Communications devedge.netscape.com |