diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2025-12-16 22:23:14 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2025-12-16 22:23:14 +0800 |
| commit | ea4127ae1f9f4cd92edf3e662251e26c6c9931d1 (patch) | |
| tree | 193716eef0771bdb902f60f6f71dffeb023d63d9 /src/bin/jv.rs | |
| parent | b4ae0f05a874fb9f852431d7b5392e41000ccdb6 (diff) | |
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.
Diffstat (limited to 'src/bin/jv.rs')
| -rw-r--r-- | src/bin/jv.rs | 8 |
1 files 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( |
