Skip to content

Commit 79f5e03

Browse files
cakebakersylvestre
authored andcommitted
mv: merge two "unix" blocks
1 parent b2619df commit 79f5e03

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/uu/mv/src/mv.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,15 +1007,11 @@ fn copy_dir_contents(
10071007
// Create the destination directory
10081008
fs::create_dir_all(to)?;
10091009

1010-
// Preserve ownership (uid/gid) of the top-level directory
10111010
#[cfg(unix)]
10121011
{
1012+
// Preserve ownership (uid/gid) of the top-level directory
10131013
let _ = preserve_ownership(from, to);
1014-
}
10151014

1016-
// Recursively copy contents
1017-
#[cfg(unix)]
1018-
{
10191015
if let (Some(tracker), Some(scanner)) = (hardlink_tracker, hardlink_scanner) {
10201016
copy_dir_contents_recursive(
10211017
from,

0 commit comments

Comments
 (0)