MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / ensure_directory

Method ensure_directory

codewiki/src/utils.py:14–16  ·  view source on GitHub ↗

Create directory if it doesn't exist.

(path: str)

Source from the content-addressed store, hash-verified

12
13 @staticmethod
14 def ensure_directory(path: str) -> None:
15 """Create directory if it doesn't exist."""
16 os.makedirs(path, exist_ok=True)
17
18 @staticmethod
19 def save_json(data: Any, filepath: str) -> None:

Callers 4

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected