id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
2745	Merging directory with (F6 | Move) does copy instead of rename	guanx		"Moving a directory $dir into a directory containing a subdir with the same name as $dir does copy $dir's content instead of first trying a ""rename"".

For example:
├── dir1
│   └── file
└── dir2
    └── dir1
Then ""(F6 | Move) /dir1 /dir2"" will copy ""file"" even when ""dir1"" and ""dir2/dir1"" are on the same filesystem.

This problem comes from the code
copy_dir_dir (...)
{
...
    if (mc_stat (d, &buf))
    {
        /* Here the dir doesn't exist : make it ! */
        if (move_over)
...
}
i.e., it does not try to ""move"" or ""rename"" when merging two dirs with the same name.
"	defect	closed	minor		mc-core		duplicate					no branch	
