OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import sys | 5 import sys |
6 | 6 |
7 import schema_util | 7 import schema_util |
8 from docs_server_utils import ToUnicode | 8 from docs_server_utils import ToUnicode |
9 from file_system import FileNotFoundError | 9 from file_system import FileNotFoundError |
10 from future import Gettable, Future | 10 from future import Gettable, Future |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
252 return cache_entry.version | 252 return cache_entry.version |
253 return self._file_system.Stat(path).version | 253 return self._file_system.Stat(path).version |
254 | 254 |
255 def GetFileListingVersion(self, path): | 255 def GetFileListingVersion(self, path): |
256 if not path.endswith('/'): | 256 if not path.endswith('/'): |
257 path += '/' | 257 path += '/' |
258 cache_entry = self._list_object_store.Get(path).Get() | 258 cache_entry = self._list_object_store.Get(path).Get() |
259 if cache_entry is not None: | 259 if cache_entry is not None: |
260 return cache_entry.version | 260 return cache_entry.version |
261 return self._file_system.Stat(path).version | 261 return self._file_system.Stat(path).version |
262 | |
263 def FileExists(self, path): | |
not at google - send to devlin
2014/03/07 01:04:52
see elsewhere-comment about not needing this funct
Ken Rockot(use gerrit already)
2014/03/07 07:07:09
Done.
| |
264 return self._file_system.Exists(path) | |
OLD | NEW |