MCPcopy Create free account
hub / github.com/hunvreus/devpush / _reset_database_path

Function _reset_database_path

app/workers/tasks/storage.py:187–197  ·  view source on GitHub ↗
(settings, storage: Storage)

Source from the content-addressed store, hash-verified

185
186
187def _reset_database_path(settings, storage: Storage) -> None:
188 base_dir = (
189 Path(settings.data_dir)
190 / "storage"
191 / storage.team_id
192 / "database"
193 / storage.name
194 )
195 if base_dir.exists():
196 shutil.rmtree(base_dir)
197 _ensure_database_path(settings, storage)
198
199
200def _reset_volume_path(settings, storage: Storage) -> None:

Callers

nothing calls this directly

Calls 1

_ensure_database_pathFunction · 0.85

Tested by

no test coverage detected