From bc28cc71b817502fbd5b228ff530af3d8bd92db3 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 14 Feb 2025 01:56:30 +0900 Subject: [PATCH] fix(status): resolve relative path in status command --- src/cmd_status.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd_status.rs b/src/cmd_status.rs index 560c02f..e8283c9 100644 --- a/src/cmd_status.rs +++ b/src/cmd_status.rs @@ -21,6 +21,8 @@ pub(crate) fn cmd_status( config_dir: &Path, ) -> Result<()> { let path = path.unwrap_or(env::current_dir().context("Failed to get current directory.")?); + let path = path::absolute(path).context("Failed to get absolute path")?; + debug!("target path: {path:?}"); let current_device = devices::get_device(config_dir)?; if show_storage {