Class: FileSystemDirectoryReader

webdav.FileSystemDirectoryReader

Created by calling webdav.FileSystemDirectoryEntry.createReader, this interface provides the functionality which lets you read the contents of a directory.

Methods

readEntries(successCallback, errorCallbackopt) → {void}

Returns a an array containing some number of the directory’s entries. Each item in the array is an object based on FileSystemEntry —typically either webdav.FileSystemFileEntry or webdav.FileSystemDirectoryEntry.

Parameters:
Name Type Attributes Description
successCallback webdav.FileSystemEntriesCallback

A function which is called when the directory’s contents have been retrieved. The function receives a single input parameter: an array of file system entry objects, each based on webdav.FileSystemEntry. Generally, they are either webdav.FileSystemFileEntry objects, which represent standard files, or webdav.FileSystemDirectoryEntry objects, which represent directories. If there are no files left, or you’ve already called readEntries() on this FileSystemDirectoryReader, the array is empty.

errorCallback external:ErrorCallback <optional>

A callback function which is called if an error occurs while reading from the directory. It receives one input parameter: a external:DOMException object describing the error which occurred.

Source:
See:
Returns:
Type
void