Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Unified Diff: components/filesystem/public/interfaces/directory.mojom

Issue 1176653002: mandoline filesystem: add a sqlite3 vfs to proxy filesystem usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch cleanup now that gn check passes. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..daa9bbffb2a8ceddaa5d7b06c0396aa39f4dcccd 100644
--- a/components/filesystem/public/interfaces/directory.mojom
+++ b/components/filesystem/public/interfaces/directory.mojom
@@ -42,6 +42,12 @@ 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);
+
// 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

Powered by Google App Engine
This is Rietveld 408576698