fix: Ensure root is valid path

This commit is contained in:
Ed Page 2024-04-15 11:05:33 -05:00
parent 12e7d60ab8
commit 0f72122831

View file

@ -79,6 +79,9 @@ impl Config {
let mut root = path;
root.pop(); // Remove filename
if root == std::path::Path::new("") {
root = std::path::Path::new(".").to_owned();
}
config.root = root;
Ok(config)