Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / docs / server2 / local_file_system.py
index 7d08594..5b14ca1 100644 (file)
@@ -88,7 +88,12 @@ class LocalFileSystem(FileSystem):
         if path == '' or path.endswith('/'):
           result[path] = _ListDir(full_path)
         else:
-          result[path] = _ReadFile(full_path)
+          try:
+            result[path] = _ReadFile(full_path)
+          except FileNotFoundError:
+            if skip_not_found:
+              continue
+            return Future(exc_info=sys.exc_info())
       return result
     return Future(callback=resolve)