MCPcopy Create free account
hub / github.com/dataease/SQLBot / add_path

Method add_path

backend/common/utils/whitelist.py:86–91  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

84 )
85
86 def add_path(self, path: str) -> None:
87
88 if path not in self.whitelist:
89 self.whitelist.append(path)
90 if "*" in path:
91 self._compile_patterns()
92
93whiteUtils = WhitelistChecker()

Callers

nothing calls this directly

Calls 2

_compile_patternsMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected