diff --git a/raphtory-graphql/src/server.rs b/raphtory-graphql/src/server.rs index f54b6dfbbe..d1430b927a 100644 --- a/raphtory-graphql/src/server.rs +++ b/raphtory-graphql/src/server.rs @@ -39,7 +39,7 @@ use crate::{ }; use std::{ collections::HashMap, - env, + env, fs, path::{Path, PathBuf}, sync::{Arc, Mutex}, }; @@ -70,6 +70,9 @@ impl RaphtoryServer { maybe_graph_paths: Option>, maybe_cache_config: Option, ) -> Self { + if !work_dir.exists() { + fs::create_dir_all(work_dir).unwrap(); + } let data = Data::new( work_dir, maybe_graphs,