MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / main

Function main

scripts/init_db.py:33–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 "embeddings_cache",
32 "papers",
33 "reading_reports",
34 "wiki",
35 "webhook_task_locks",
36 ):
37 (DATA_DIR / relative).mkdir(parents=True, exist_ok=True)
38 DATA_DIR.mkdir(parents=True, exist_ok=True)
39 (RUNTIME_ROOT / "models").mkdir(parents=True, exist_ok=True)
40
41 # .gitkeep only makes sense inside the repository; an installed runtime root
42 # is not version controlled.
43 if (PROJECT_ROOT / "pyproject.toml").is_file():
44 for path in (DATA_DIR / ".gitkeep", RUNTIME_ROOT / "models" / ".gitkeep"):
45 path.touch(exist_ok=True)
46
47

Callers 1

init_db.pyFile · 0.70

Calls 1

ensure_runtime_dirsFunction · 0.70

Tested by

no test coverage detected