JavaScript
{dialog.object}phoneGapCreateDirectory Method
Syntax
{dialog.object}.phoneGapCreateDirectory(dirName, onComplete, onError);
Arguments
- dirName
Name of directory to create.
- onComplete
A javascript function to call if creating the directory succeeds.
- onError
A javascript function to call if an error occurs when trying to create the directory.
Description
Create a directory in the file system of the mobile device.
Discussion
The phoneGapCreateDirectory method creates a directory in the file system of the mobile device. This method is asynchronous. Calls the onComplete function if the method succeeded. Calls the onError function is the method failed.
Example
// {dialog.object}.phoneGapCreateDirectory(dirName, onComplete, onError);