// GENERATED CONTENT - DO NOT EDIT // Content was automatically extracted by Reffy into reffy-reports // (https://github.com/tidoust/reffy-reports) // Source: Native File System (https://wicg.github.io/native-file-system/) dictionary FileSystemHandlePermissionDescriptor { boolean writable = false; }; [Exposed=(Window,Worker), SecureContext, Serializable] interface FileSystemHandle { readonly attribute boolean isFile; readonly attribute boolean isDirectory; readonly attribute USVString name; Promise queryPermission(optional FileSystemHandlePermissionDescriptor descriptor = {}); Promise requestPermission(optional FileSystemHandlePermissionDescriptor descriptor = {}); }; dictionary FileSystemCreateWriterOptions { boolean keepExistingData = false; }; [Exposed=(Window,Worker), SecureContext, Serializable] interface FileSystemFileHandle : FileSystemHandle { Promise getFile(); Promise createWriter(optional FileSystemCreateWriterOptions options = {}); }; dictionary FileSystemGetFileOptions { boolean create = false; }; dictionary FileSystemGetDirectoryOptions { boolean create = false; }; dictionary FileSystemRemoveOptions { boolean recursive = false; }; [Exposed=(Window,Worker), SecureContext, Serializable] interface FileSystemDirectoryHandle : FileSystemHandle { Promise getFile(USVString name, optional FileSystemGetFileOptions options = {}); Promise getDirectory(USVString name, optional FileSystemGetDirectoryOptions options = {}); // This really returns an async iterable, but that is not yet expressable in WebIDL. object getEntries(); Promise removeEntry(USVString name, optional FileSystemRemoveOptions options = {}); }; [Exposed=(Window,Worker), SecureContext] interface FileSystemWriter { Promise write(unsigned long long position, (BufferSource or Blob or USVString) data); Promise truncate(unsigned long long size); Promise close(); }; enum ChooseFileSystemEntriesType { "open-file", "save-file", "open-directory" }; dictionary ChooseFileSystemEntriesOptionsAccepts { USVString description; sequence mimeTypes; sequence extensions; }; dictionary ChooseFileSystemEntriesOptions { ChooseFileSystemEntriesType type = "open-file"; boolean multiple = false; sequence accepts; boolean excludeAcceptAllOption = false; }; [SecureContext] partial interface Window { Promise<(FileSystemHandle or sequence)> chooseFileSystemEntries(optional ChooseFileSystemEntriesOptions options = {}); }; enum SystemDirectoryType { "sandbox" }; dictionary GetSystemDirectoryOptions { required SystemDirectoryType type; }; [SecureContext] partial interface FileSystemDirectoryHandle { static Promise getSystemDirectory(GetSystemDirectoryOptions options); };