| Index: components/filesystem/public/interfaces/directory.mojom
|
| diff --git a/components/filesystem/public/interfaces/directory.mojom b/components/filesystem/public/interfaces/directory.mojom
|
| index 5d3a1db4a1c89d311808621b45fb8678f75eec1d..bd5aba4dceebf1c57dc3442452b8499d82d7c69e 100644
|
| --- a/components/filesystem/public/interfaces/directory.mojom
|
| +++ b/components/filesystem/public/interfaces/directory.mojom
|
| @@ -42,6 +42,16 @@ interface Directory {
|
| // |kDeleteFlag...| for details).
|
| Delete(string path, uint32 delete_flags) => (FileError error);
|
|
|
| + // Returns true if |path| exists.
|
| + Exists(string path) => (FileError error, bool exists);
|
| +
|
| + // Returns true if |path| is writable.
|
| + IsWritable(string path) => (FileError error, bool is_writable);
|
| +
|
| + // Opens a file descriptor on this directory and calls
|
| + // fsync()/FlushFileBuffers().
|
| + Flush() => (FileError error);
|
| +
|
| // TODO(vtl): directory "streaming"?
|
| // TODO(vtl): "make root" (i.e., prevent cd-ing, etc., to parent); note that
|
| // this would require a much more complicated implementation (e.g., it needs
|
|
|