|
From: | Thierry Volpiatto |
Subject: | bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy |
Date: | Mon, 27 Feb 2012 15:59:36 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes: >> 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). If you don't create test1, you will never have a value of file-attributes for it, and file-directory-p will return always nil on test1. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997
[Prev in Thread] | Current Thread | [Next in Thread] |