mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
mv: fix "mv
fails transfers between dirs"
This commit is contained in:
parent
31ca885c9c
commit
fb1d844e14
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ fn move_files_into_dir(files: &[PathBuf], target_dir: &PathBuf, b: &Behaviour) -
|
|||
|
||||
let mut all_successful = true;
|
||||
for sourcepath in files.iter() {
|
||||
let targetpath = match sourcepath.as_os_str().to_str() {
|
||||
let targetpath = match sourcepath.file_name() {
|
||||
Some(name) => target_dir.join(name),
|
||||
None => {
|
||||
show_error!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue