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

Function redactable_file

tools/tasks.py:794–801  ·  view source on GitHub ↗

Return True if the file should be redacted, otherwise False.

(filename: Union[pathlib.Path, str])

Source from the content-addressed store, hash-verified

792
793
794def redactable_file(filename: Union[pathlib.Path, str]) -> bool:
795 """
796 Return True if the file should be redacted, otherwise False.
797 """
798 filename = pathlib.Path(filename)
799 if filename.name.startswith(("pprof", "expvars.json")):
800 return False
801 return filename.stem != "sync_gateway"
802
803
804def get_open_fn(path: Union[pathlib.Path, str]) -> Callable:

Callers 1

redact_and_zipMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected