Read the org files inside the writer directory.

This commit is contained in:
Tom Alexander
2023-10-20 20:16:22 -04:00
parent 051e86e65a
commit acaa12cb6e
4 changed files with 45 additions and 1 deletions

View File

@@ -44,4 +44,11 @@ impl Config {
.await?;
Ok(())
}
pub(crate) fn get_root_directory(&self) -> &Path {
&self
.config_path
.parent()
.expect("Config file must exist inside a directory.")
}
}