summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/filesystem/file_system_directory_handle.idl
blob: 5e2309e925a2bf97171b53ca3951ba6610f26699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://wicg.github.io/writable-files/#filesystemdirectoryhandle
[
    RuntimeEnabled=WritableFiles
] interface FileSystemDirectoryHandle : FileSystemBaseHandle {
    [CallWith=ScriptState] Promise<FileSystemFileHandle> getFile(USVString name, optional FileSystemGetFileOptions options);
    [CallWith=ScriptState] Promise<FileSystemDirectoryHandle> getDirectory(USVString name, optional FileSystemGetDirectoryOptions options);
    [CallWith=ScriptState] object getEntries();

    [CallWith=ScriptState] Promise<void> removeRecursively();

    [CallWith=ScriptState]
    static Promise<FileSystemDirectoryHandle> getSystemDirectory(GetSystemDirectoryOptions options);
};