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 enum FileSystemHandleKind {
11 [Exposed=(Window,Worker), SecureContext, Serializable, Pref="dom.fs.enabled"]
12 interface FileSystemHandle {
13 readonly attribute FileSystemHandleKind kind;
14 readonly attribute USVString name;
16 /* https://whatpr.org/fs/10.html#api-filesystemhandle */
18 Promise<undefined> move(USVString name);
20 Promise<undefined> move(FileSystemDirectoryHandle parent);
22 Promise<undefined> move(FileSystemDirectoryHandle parent, USVString name);
25 Promise<boolean> isSameEntry(FileSystemHandle other);