We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

XPInstall API Reference:File Object:Methods:dirCreate


Creates a new directory.

Method of

File object


int dirCreate( FileSpecObject dirToCreate );


The dirCreate method has the following parameters:




A FileSpecObject representing the pathname of the directory to create.


An integer error code. For a list of possible values, see Return Codes.


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 dirCreate method. Note that the getFolder method does not require that the folder or directory you specify exist in order for the object reference to be a valid one.


f = getFolder("Program", "myNewDirectory");
err = File.dirCreate(f);

Document Tags and Contributors

 Last updated by: Anonymous,