JavaScript
{dialog.object}phoneGapCreateDirectoryRecurse Method
Syntax
{dialog.object}.phoneGapCreateDirectoryRecurse(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 directories recursively in the file system of the mobile device.
Discussion
The phoneGapCreateDirectoryRecurse method creates directories recursively in the file system of the mobile device. The method is asynchronous. Calls the onComplete function if the method succeeded. Calls the onError function is the method failed.
Example
// {dialog.object}.phoneGapCreateDirectoryRecurse(dirName, onComplete, onError);