MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / __exit__

Method __exit__

tools/tasks.py:283–290  ·  view source on GitHub ↗
(
        self,
        exc_type: Optional[type[BaseException]],
        exc_value: Optional[type[BaseException]],
        traceback: Optional[types.TracebackType],
    )

Source from the content-addressed store, hash-verified

281 return self
282
283 def __exit__(
284 self,
285 exc_type: Optional[type[BaseException]],
286 exc_value: Optional[type[BaseException]],
287 traceback: Optional[types.TracebackType],
288 ):
289 self.close_all_files()
290 shutil.rmtree(self.tmpdir, ignore_errors=True)
291
292 def collect_file(self, filename):
293 """Add a file to the list of files collected. Used to capture the exact

Callers

nothing calls this directly

Calls 1

close_all_filesMethod · 0.95

Tested by

no test coverage detected