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/. */
6 dictionary FileSystemGetFileOptions {
7 boolean create = false;
10 dictionary FileSystemGetDirectoryOptions {
11 boolean create = false;
14 dictionary FileSystemRemoveOptions {
15 boolean recursive = false;
18 [Exposed=(Window,Worker), SecureContext, Serializable, Pref="dom.fs.enabled"]
19 interface FileSystemDirectoryHandle : FileSystemHandle {
21 async iterable<USVString, FileSystemHandle>;
24 Promise<FileSystemFileHandle> getFileHandle(USVString name, optional FileSystemGetFileOptions options = {});
27 Promise<FileSystemDirectoryHandle> getDirectoryHandle(USVString name, optional FileSystemGetDirectoryOptions options = {});
30 Promise<undefined> removeEntry(USVString name, optional FileSystemRemoveOptions options = {});
33 Promise<sequence<USVString>?> resolve(FileSystemHandle possibleDescendant);