summaryrefslogtreecommitdiffstats
path: root/components/filesystem/public/interfaces/directory.mojom
diff options
context:
space:
mode:
Diffstat (limited to 'components/filesystem/public/interfaces/directory.mojom')
-rw-r--r--components/filesystem/public/interfaces/directory.mojom10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/filesystem/public/interfaces/directory.mojom b/components/filesystem/public/interfaces/directory.mojom
index 5d3a1db..bd5aba4 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