| Index: client/isolateserver.py
|
| diff --git a/client/isolateserver.py b/client/isolateserver.py
|
| index 1a679fcfcf1d58f95d3bf03be2e38857be83534c..bdc2edd25d3a6ecc831f6fda8448eef7474e9ae0 100755
|
| --- a/client/isolateserver.py
|
| +++ b/client/isolateserver.py
|
| @@ -1523,6 +1523,16 @@ class DiskCache(LocalCache):
|
| with self._lock:
|
| self._linked.append(self._lru[digest])
|
|
|
| + def item_path(self, digest):
|
| + """Returns a path on disk of the cached item.
|
| +
|
| + Raises:
|
| + CacheMiss if the item is not present in cache.
|
| + """
|
| + if digest not in self._lru:
|
| + raise CacheMiss(digest)
|
| + return self._path(digest)
|
| +
|
| def _load(self):
|
| """Loads state of the cache from json file."""
|
| self._lock.assert_locked()
|
|
|