This page is Out of Date

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

DirectoryReader

Summary

This interface lets a user list files and directories in a directory.

Out of date; feature discontinued. See http://www.w3.org/TR/file-system-api.

Properties

No properties.

Methods

readEntries

Read the next block of entries from this directory.

Out of date; feature discontinued. See http://www.w3.org/TR/file-system-api.

Events

No events.

Notes

If there are no additions to or deletions from a directory between the first and last call to readEntries, and no errors occur, then:

  • A series of calls to readEntries must return each entry in the directory exactly once.
  • Once all entries have been returned, the next call to readEntries must produce an empty array.
  • If not all entries have been returned, the array produced by readEntries must not be empty.
  • The entries produced by readEntries must not include the directory itself [“.”] or its parent [“…”].

Related specifications

W3C File API: Directories and System Specification
W3C Working Draft