We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2619df commit 79f5e03Copy full SHA for 79f5e03
1 file changed
src/uu/mv/src/mv.rs
@@ -1007,15 +1007,11 @@ fn copy_dir_contents(
1007
// Create the destination directory
1008
fs::create_dir_all(to)?;
1009
1010
- // Preserve ownership (uid/gid) of the top-level directory
1011
#[cfg(unix)]
1012
{
+ // Preserve ownership (uid/gid) of the top-level directory
1013
let _ = preserve_ownership(from, to);
1014
- }
1015
1016
- // Recursively copy contents
1017
- #[cfg(unix)]
1018
- {
1019
if let (Some(tracker), Some(scanner)) = (hardlink_tracker, hardlink_scanner) {
1020
copy_dir_contents_recursive(
1021
from,
0 commit comments