Index: chrome/common/extensions/docs/server2/file_system.py |
diff --git a/chrome/common/extensions/docs/server2/file_system.py b/chrome/common/extensions/docs/server2/file_system.py |
index af8c5018459a14909aa963223a9a3cf1667f20f5..613c6e8de156031d690aacd4d329f0d6426b835b 100644 |
--- a/chrome/common/extensions/docs/server2/file_system.py |
+++ b/chrome/common/extensions/docs/server2/file_system.py |
@@ -18,6 +18,11 @@ class FileSystem(object): |
""" |
raise NotImplementedError() |
+ def ReadSingleFile(self, path): |
not at google - send to devlin
2012/07/23 13:25:37
oh this works for directories as well as files. Oo
cduvall
2012/07/23 18:10:37
Done.
|
+ """Reads a single file from the FileSystem. |
+ """ |
+ return self.Read([path]).Get()[path] |
+ |
def Stat(self, path): |
"""Gets the version number of |path| if it is a directory, or the parent |
directory if it is a file. |