This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The read-only filesystem property of the FileSystemEntry interface contains a FileSystem object that represents the file system on which the entry resides.


var filesystem = FileSystemEntry.filesystem;


A FileSystem representing the file system on which the file or directory described by the FileSystemEntry is located..


This example obtains a FileSystemDirectoryEntry for the root directory of the file system containing a file.

let rootDirEntry = fileEntry.filesystem.root;


Specification Status Comment
File and Directory Entries API
The definition of 'filesystem' in that specification.
Draft Initial specification.

Browser compatibility

ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Chrome Full support 8Edge Full support 79Firefox Full support 50IE No support NoOpera No support NoSafari Full support 11.1WebView Android Full support ≤37Chrome Android Full support 18Firefox Android Full support 50Opera Android No support NoSafari iOS Full support 11.3Samsung Internet Android Full support Yes


Full support
Full support
No support
No support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

See also