Back to Content

Metadata

files/en-us/web/api/metadata/index.md

latest1.2 KB
Original Source

{{APIRef("File and Directory Entries API")}}{{Non-standard_Header}}{{SeeCompatTable}}

The Metadata interface contains information about a file system entry. This metadata includes the file's size and modification date and time.

[!NOTE] This interface isn't available through the global scope; instead, you obtain a Metadata object describing a {{domxref("FileSystemEntry")}} using the method {{domxref("FileSystemEntry.getMetadata()")}}.

Instance properties

  • {{domxref("Metadata.modificationTime", "modificationTime")}} {{ReadOnlyInline}} {{Experimental_Inline}} {{Non-standard_Inline}}
    • : A {{jsxref("Date")}} object indicating the date and time the entry was modified.
  • {{domxref("Metadata.size", "size")}} {{ReadOnlyInline}} {{Experimental_Inline}} {{Non-standard_Inline}}
    • : A 64-bit unsigned integer indicating the size of the entry in bytes.

Specifications

This feature has been removed from all specification and is not in the process of being standardized.

Browser compatibility

{{Compat}}

See also