MCPcopy
hub / github.com/sqlalchemy/alembic / _ensure_directory

Method _ensure_directory

alembic/script/base.py:587–593  ·  view source on GitHub ↗
(self, path: Path)

Source from the content-addressed store, hash-verified

585 shutil.copy(src, dest)
586
587 def _ensure_directory(self, path: Path) -> None:
588 path = path.absolute()
589 if not path.exists():
590 with util.status(
591 f"Creating directory {path}", **self.messaging_opts
592 ):
593 os.makedirs(path)
594
595 def _generate_create_date(self) -> datetime.datetime:
596 if self.timezone is not None:

Callers 1

generate_revisionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected