From ea4127ae1f9f4cd92edf3e662251e26c6c9931d1 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Tue, 16 Dec 2025 22:23:14 +0800 Subject: Fix Windows path conversion issue in `jv move` command Use `format_path_str` to properly handle Windows path separators when generating move operation parameters for single file moves. --- src/bin/jv.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin/jv.rs b/src/bin/jv.rs index ff0ea8e..dd00b7e 100644 --- a/src/bin/jv.rs +++ b/src/bin/jv.rs @@ -5,7 +5,11 @@ use just_enough_vcs::{ cfg_file::config::ConfigFile, data_struct::dada_sort::quick_sort_with_cmp, sha1_hash, - string_proc::{self, format_path::format_path, snake_case}, + string_proc::{ + self, + format_path::{format_path, format_path_str}, + snake_case, + }, tcp_connection::instance::ConnectionInstance, }, vcs::{ @@ -3522,7 +3526,7 @@ async fn jv_move(args: MoveMappingArgs) { // Generate move operation parameters // Single file move if from_mappings.len() == 1 { - let from = from_mappings[0].clone(); + let from = format_path_str(from_mappings[0].clone()).unwrap(); let to = if is_to_pattern_a_dir { // Input is a directory, append the filename format_path( -- cgit