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

Function python_add_file_task

tools/tasks.py:481–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

479 """
480
481 def python_add_file_task():
482 with open(sourcefile_path, "br") as infile:
483 contents = infile.read()
484 if content_postprocessors:
485 for content_postprocessor in content_postprocessors:
486 contents = content_postprocessor(contents)
487 return contents
488
489 task = PythonTask(
490 description="Contents of {0}".format(sourcefile_path),

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected