diff options
-rw-r--r-- | buildstream/storage/_casbaseddirectory.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/buildstream/storage/_casbaseddirectory.py b/buildstream/storage/_casbaseddirectory.py index fd88cc1b0..bd72e7c1c 100644 --- a/buildstream/storage/_casbaseddirectory.py +++ b/buildstream/storage/_casbaseddirectory.py @@ -596,3 +596,10 @@ class CasBasedDirectory(Directory): subdir = self.descend(path[:-1]) entry = subdir.index[path[-1]] return self.cas_cache.objpath(entry.pb_object.digest) + + def _exists(self, path): + try: + subdir = self.descend(path[:-1]) + return path[-1] in subdir.index + except VirtualDirectoryError: + return False |