From 1d9253a0b717411d35b257958306df1b01152758 Mon Sep 17 00:00:00 2001 From: Balt <59123926+balt-dev@users.noreply.github.com> Date: Sun, 8 Dec 2024 10:55:16 -0600 Subject: [PATCH] Check that the path input to `geode config setup` exists (#90) --- src/info.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/info.rs b/src/info.rs index 1bc9c4b..42854bb 100644 --- a/src/info.rs +++ b/src/info.rs @@ -153,6 +153,11 @@ pub fn subcommand(config: &mut Config, cmd: Info) { // Verify path is valid let path = PathBuf::from(buf.trim()); + if !path.exists() { + fail!("The path must exist"); + continue; + } + #[allow(clippy::collapsible_else_if)] if platform == "win" { if path.is_dir() {