Metadata

An interface that supplies information about the state of a file or directory.

Properties

  • modificationTime: The time when the file or directory was last modified. (Date)

Details

The Metadata object represents information about the state of a file or directory. Calling a [DirectoryEntry](../directoryentry/directoryentry.html) or [FileEntry](../fileentry/fileentry.html) object's getMetadata() method results in a Metadata instance.

Supported Platforms

  • Amazon Fire OS
  • Android
  • BlackBerry 10
  • iOS
  • Windows Phone 7 and 8
  • Windows 8

Quick Example

function win(metadata) {
    console.log("Last Modified: " + metadata.modificationTime);
}

// Request the metadata object for this entry
entry.getMetadata(win, null);