MCPcopy Index your code
hub / github.com/DanielBok/nlopt-python / create_directory

Function create_directory

extensions.py:117–121  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

115
116
117def create_directory(path: Path):
118 if path.exists():
119 shutil.rmtree(path)
120 path.mkdir(exist_ok=True, parents=True)
121 return path
122
123
124def execute_command(cmd: List[str], cwd: Path, env: Dict[str, str] = os.environ):

Callers 1

build_extensionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected