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

Unified Diff: chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake

Issue 360673004: Demonstrate the functionality of the File System Provider API for archives. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve a bug with the entry.name used as mounted fileSystemId as entry.name can be duplicated. Now… Created 6 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: chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake
diff --git a/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake b/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake
new file mode 100644
index 0000000000000000000000000000000000000000..13a4e1d28150b37a5b1098ca4ee7b5f66c177e06
--- /dev/null
+++ b/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake
@@ -0,0 +1,34 @@
+{
+ "/":{
mtomasz 2014/07/01 01:31:29 nit: Please add a space after each :
cmihail 2014/07/01 01:40:03 Done.
+ "isDirectory":true,
+ "name":"/",
+ "size":0,
+ "modificationTime":"2014-06-26T08:47:11.591Z"
+ },
+ "/file1.txt":{
+ "isDirectory":false,
+ "name":"file1.txt",
+ "size":46,
+ "modificationTime":"2014-06-26T08:47:11.591Z",
+ "contents":"It works!\nEverything gets displayed correctly."
+ },
+ "/file2":{
+ "isDirectory":false,
+ "name":"file2",
+ "size":150,
+ "modificationTime":"2014-06-26T08:47:11.591Z"
+ },
+ "/dir":{
+ "isDirectory":true,
+ "name":"dir",
+ "size":0,
+ "modificationTime":"2014-06-26T08:47:11.591Z"
+ },
+ "/dir/file3.txt":{
+ "isDirectory":false,
+ "name":"file3.txt",
+ "size":21,
+ "modificationTime":"2014-06-26T08:47:11.591Z",
+ "contents":"Just another example."
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698