Back to Content

FileSystemEntry: filesystem property

files/en-us/web/api/filesystementry/filesystem/index.md

latest817 B
Original Source

{{APIRef("File and Directory Entries API")}}

The read-only filesystem property of the {{domxref("FileSystemEntry")}} interface contains a {{domxref("FileSystem")}} object that represents the file system on which the entry resides.

Value

A {{domxref("FileSystem")}} representing the file system on which the file or directory described by the FileSystemEntry is located.

Examples

This example obtains a {{domxref("FileSystemDirectoryEntry")}} for the root directory of the file system containing a file.

js
let rootDirEntry = fileEntry.filesystem.root;

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also