BrowserFileTree

Wraps a local directory as an async tree

This class wraps a FileSystemDirectoryHandle as an mutable async tree whose contents can be read and written via tree operations.

BrowserFileTree class

BrowserFileTree([directoryHandle]) constructor

  • directoryHandle: FileSystemDirectoryHandle

Construct a tree of files backed by a browser-hosted file system.

The directory handle can be obtained via any of the methods that return a FileSystemDirectoryHandle. If no directory is supplied, the tree is rooted at the Origin Private File System for the current site.