MCPcopy Create free account
hub / github.com/wal-e/wal-e / contains

Method contains

wal_e/worker/prefetch.py:169–170  ·  view source on GitHub ↗
(self, segment)

Source from the content-addressed store, hash-verified

167 raise
168
169 def contains(self, segment):
170 return path.isfile(path.join(self.prefetched_dir, segment.name))
171
172 def is_running(self, segment):
173 return path.isdir(self.seg_dir(segment))

Callers 5

wal_restoreMethod · 0.95
start_prefetchesFunction · 0.80
test_atomic_downloadFunction · 0.80
test_cleanup_promotedFunction · 0.80

Calls 1

joinMethod · 0.45

Tested by 3

test_atomic_downloadFunction · 0.64
test_cleanup_promotedFunction · 0.64