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

Method get_file

tools/tasks.py:302–309  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

300 log("Unable to collect file '{0}' - already collected.".format(filename))
301
302 def get_file(self, filename):
303 if filename in self.files:
304 fp = self.files[filename]
305 else:
306 fp = open(os.path.join(self.tmpdir, filename), "wb+")
307 self.files[filename] = fp
308
309 return fp
310
311 def header(self, fp, title, subtitle):
312 separator = "=" * 78

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected