Subject: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy

From: Stefan Monnier <[email-masked]>
Date: Mon, 27 Feb 2012 08:24:44 -0500

> Because if we don't do that, we have to create new directory Test1 and
> then test if Test1 is a subdir of Test.

No we don't have to do that.  We can do the extra work in copy-directory
(so we call file-equal-p on "~/test" rather than on "~/test/test1" when
"~/test/test1" doesn't exist yet).

        Stefan