Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / docs / server2 / offline_file_system.py
index 2096de7..4a5e7ec 100644 (file)
@@ -13,7 +13,8 @@ class OfflineFileSystem(FileSystem):
   def __init__(self, fs):
     self._fs = fs
 
-  def Read(self, paths):
+  def Read(self, paths, skip_not_found=False):
+    if skip_not_found: return Future(value={})
     def raise_file_not_found():
       raise FileNotFoundError('File system is offline, cannot read %s' % paths)
     return Future(callback=raise_file_not_found)