JavaScript

{dialog.object}phoneGapGetDirectory Method

Syntax

{dialog.object}.phoneGapGetDirectory(dirName, onComplete, onError);

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 phoneGapGetDirectory method gets a list of files in a directory 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}.phoneGapGetDirectory(dirName, onComplete, onError);