mv
shouldn't delete directory before it's moved/copied entirely
#7933
Labels
mv
shouldn't delete directory before it's moved/copied entirely
#7933
This only applies when
mv
-ing directories across different filesystems.According to this StackOverflow post, in particular
user263131
's command, if I run (coreutils)mv /mnt/fs1/foo /mnt/fs2/
and I interrupt before the command is completed, the contents of/mnt/fs1/foo
should stay unchanged. However, this is not behavior of uutilsmv
. To repro,Watch the progress bar and Ctrl+C after one file is moved. You will see that
test
only contains 3 files now. However, the behavior ofmv
is that all 4 files remain. You can verify this by running (coreutils)mv -v test /mnt/fs1
and Ctrl+C after one file is copied. All files intest
are preserved.The text was updated successfully, but these errors were encountered: