MCPcopy
hub / github.com/pre-commit/pre-commit / exists

Method exists

pre_commit/prefix.py:13–14  ·  view source on GitHub ↗
(self, *parts: str)

Source from the content-addressed store, hash-verified

11 return os.path.normpath(os.path.join(self.prefix_dir, *parts))
12
13 def exists(self, *parts: str) -> bool:
14 return os.path.exists(self.path(*parts))
15
16 def star(self, end: str) -> tuple[str, ...]:
17 paths = os.listdir(self.prefix_dir)

Callers 15

parse_filenameFunction · 0.80
_read_stateFunction · 0.80
_hook_installedFunction · 0.80
_hook_installFunction · 0.80
clean_path_on_failureFunction · 0.80
is_in_merge_conflictFunction · 0.80
_adjust_args_and_chdirFunction · 0.80
__init__Method · 0.80
mark_config_usedMethod · 0.80
install_environmentFunction · 0.80
install_environmentFunction · 0.80
health_checkFunction · 0.80

Calls 1

pathMethod · 0.95