Skip to content

Commit

Permalink
fix: custom path windows size at 0 if no backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrix126 committed Dec 16, 2024
1 parent 8a813a2 commit 8510db5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helper/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}) {
Expand Down

0 comments on commit 8510db5

Please sign in to comment.