MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / is_dir

Method is_dir

core/filesystem.py:364–378  ·  view source on GitHub ↗

Check if path is a directory. Args: path: Path to check Returns: True if path is a directory, False otherwise

(self, path: Union[str, Path])

Source from the content-addressed store, hash-verified

362 return False
363
364 def is_dir(self, path: Union[str, Path]) -> bool:
365 """
366 Check if path is a directory.
367
368 Args:
369 path: Path to check
370
371 Returns:
372 True if path is a directory, False otherwise
373 """
374 try:
375 path = self._validate_path(path)
376 return path.is_dir()
377 except FilesystemAccessError:
378 return False
379
380 def list_dir(self, path: Union[str, Path] = ".") -> List[str]:
381 """

Callers 9

handle_commandFunction · 0.80
index_directoryFunction · 0.80
tool_list_dirFunction · 0.80
file_is_dirFunction · 0.80
load_directoryFunction · 0.80
list_dirMethod · 0.80
list_available_skillsFunction · 0.80
_collect_project_filesFunction · 0.80
validate_lora_adapterFunction · 0.80

Calls 1

_validate_pathMethod · 0.95

Tested by

no test coverage detected