MCPcopy Create free account
hub / github.com/tox-dev/filelock / create_directory

Function create_directory

tests/sqlite/test_links.py:383–390  ·  view source on GitHub ↗
(
        *,
        prefix: str,
        dir: Path,  # ruff:ignore[builtin-argument-shadowing]  # matches mkdtemp
    )

Source from the content-addressed store, hash-verified

381 mkdtemp = tempfile.mkdtemp
382
383 def create_directory(
384 *,
385 prefix: str,
386 dir: Path, # ruff:ignore[builtin-argument-shadowing] # matches mkdtemp
387 ) -> str:
388 directory: Final[str] = mkdtemp(prefix=prefix, dir=dir)
389 directories.append(Path(directory))
390 return directory
391
392 mocker.patch("tempfile.mkdtemp", autospec=True, side_effect=create_directory)
393 return directories

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected