From 8510db560437513cf4a5de116c951feb25aa0150 Mon Sep 17 00:00:00 2001 From: Cyrix126 Date: Mon, 16 Dec 2024 20:22:03 +0100 Subject: [PATCH] fix: custom path windows size at 0 if no backslash --- src/helper/node.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helper/node.rs b/src/helper/node.rs index 879b4cf..27d0afa 100644 --- a/src/helper/node.rs +++ b/src/helper/node.rs @@ -419,9 +419,9 @@ impl PrivNodeApi { // https://github.com/monero-project/monero/issues/9513 { if let Ok(metadata) = std::fs::metadata(if !state.path_db.is_empty() { - let mut path_db = state.path_db.clone(); - path_db.push_str("lmdb/data.mdb"); - path_db + let mut path_db = std::path::PathBuf::from(&state.path_db); + path_db.push("lmdb/data.mdb"); + path_db.to_str().unwrap().to_string() } else { r#"C:\ProgramData\bitmonero\lmdb\data.mdb"#.to_string() }) {