| Index: components/filesystem/public/interfaces/directory.mojom
|
| diff --git a/components/filesystem/public/interfaces/directory.mojom b/components/filesystem/public/interfaces/directory.mojom
|
| index 063fb0ad37da8dfb790637c2b9a8b738cce483cb..973daa12934eea14d1c0c9e7a9de8416ccbb49f4 100644
|
| --- a/components/filesystem/public/interfaces/directory.mojom
|
| +++ b/components/filesystem/public/interfaces/directory.mojom
|
| @@ -7,6 +7,17 @@ module filesystem;
|
| import "components/filesystem/public/interfaces/file.mojom";
|
| import "components/filesystem/public/interfaces/types.mojom";
|
|
|
| +struct FileOpenDetails {
|
| + string path;
|
| + uint32 open_flags;
|
| +};
|
| +
|
| +struct FileOpenResult {
|
| + string path;
|
| + FileError error;
|
| + handle file_handle;
|
| +};
|
| +
|
| // This interface provides access to a directory in a "file system", providing
|
| // operations such as creating/opening/removing/renaming files/directories
|
| // within it. Note that all relative |path| arguments are relative to "this"
|
| @@ -37,6 +48,11 @@ interface Directory {
|
| OpenFileHandle(string path, uint32 open_flags)
|
| => (FileError error, handle file_handle);
|
|
|
| + // Like OpenFileHandle, but opens multiple files.
|
| + [Sync]
|
| + OpenFileHandles(array<FileOpenDetails> files)
|
| + => (array<FileOpenResult> results);
|
| +
|
| // Opens the directory specified by |path|. |directory| is optional, so that
|
| // this may be used as a simple "mkdir()" with |kOpenFlagCreate|.
|
| [Sync]
|
|
|