Read the org files inside the writer directory.
This commit is contained in:
@@ -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.")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user