| Index: chrome/common/extensions/docs/server2/compiled_file_system.py
|
| diff --git a/chrome/common/extensions/docs/server2/compiled_file_system.py b/chrome/common/extensions/docs/server2/compiled_file_system.py
|
| index 6ab06d8e9452a2bb34cbceb9c8173ee5188752bb..087eea8a08761efd4b172fc80181f7a45b8555d6 100644
|
| --- a/chrome/common/extensions/docs/server2/compiled_file_system.py
|
| +++ b/chrome/common/extensions/docs/server2/compiled_file_system.py
|
| @@ -93,3 +93,17 @@ class CompiledFileSystem(object):
|
| cache_data = self._populate_function(path, self._RecursiveList(path))
|
| self._list_object_store.Set(path, _CacheEntry(cache_data, version))
|
| return cache_data
|
| +
|
| + def StatFile(self, path):
|
| + cache_entry = self._file_object_store.Get(path).Get()
|
| + if cache_entry is not None:
|
| + return cache_entry.version
|
| + return self._file_system.Stat(path).version
|
| +
|
| + def StatFileListing(self, path):
|
| + if not path.endswith('/'):
|
| + path += '/'
|
| + cache_entry = self._list_object_store.Get(path).Get()
|
| + if cache_entry is not None:
|
| + return cache_entry.version
|
| + return self._file_system.Stat(path).version
|
|
|