JavaScript
{dialog.object}phoneGapGetDirectoryRecurse Method
Syntax
{dialog.object}.phoneGapGetDirectoryRecurse(folder, onDirComplete, onDirError)
Arguments
- dirName
Name of directory to get a list of files from.
- onComplete
A javascript function to call if reading the directory succeeds.
- onError
A javascript function to call if an error occurs when trying to read the directory.
Description
Gets a list of files in a directory in the file system of the mobile device.
Discussion
The phoneGapGetDirectoryRecurse method gets a list of files in a directory in the file system of the mobile device, recursing into sub-directories that are found. The method is asynchronous. Calls the onComplete function if the method succeeded. Calls the onError function is the method failed.
Example
// {dialog.object}.phoneGapGetDirectoryRecurse(folder, onDirComplete, onDirError);