tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

FileSystemDirectoryHandle.webidl (1155B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 dictionary FileSystemGetFileOptions {
      7  boolean create = false;
      8 };
      9 
     10 dictionary FileSystemGetDirectoryOptions {
     11  boolean create = false;
     12 };
     13 
     14 dictionary FileSystemRemoveOptions {
     15  boolean recursive = false;
     16 };
     17 
     18 [Exposed=(Window,Worker), SecureContext, Serializable, Pref="dom.fs.enabled"]
     19 interface FileSystemDirectoryHandle : FileSystemHandle {
     20 
     21  async_iterable<USVString, FileSystemHandle>;
     22 
     23  [NewObject]
     24  Promise<FileSystemFileHandle> getFileHandle(USVString name, optional FileSystemGetFileOptions options = {});
     25 
     26  [NewObject]
     27  Promise<FileSystemDirectoryHandle> getDirectoryHandle(USVString name, optional FileSystemGetDirectoryOptions options = {});
     28 
     29  [NewObject]
     30  Promise<undefined> removeEntry(USVString name, optional FileSystemRemoveOptions options = {});
     31 
     32  [NewObject]
     33  Promise<sequence<USVString>?> resolve(FileSystemHandle possibleDescendant);
     34 };