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