[work]: Might work if the dir is there
Some checks failed
/ clippy (push) Failing after 6m14s
/ test (push) Failing after 6m53s

This commit is contained in:
Chris Cochrun 2026-04-30 13:56:03 -05:00
parent c160f52b72
commit fbf44980e7

View file

@ -1266,6 +1266,7 @@ async fn add_presentations() -> Option<Vec<Presentation>> {
pub async fn add_db() -> Result<SqlitePool> {
let mut data = dirs::data_local_dir().expect("Should always find a data dir");
data.push("lumina");
std::fs::create_dir_all(&data).into_diagnostic()?;
data.push("library-db.sqlite3");
let mut db_url = String::from("sqlite://");
db_url.push_str(data.to_str().expect("Should always be a file here"));