diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2011-02-12 17:55:28 -0500 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-02-12 17:55:28 -0500 |
commit | 9de31df2dde735136597d63eb8e2dcc844432c81 (patch) | |
tree | 15b3c4f015bb844b5585b9c514a06b8a21c1e718 /lisp/dired-aux.el | |
parent | 33d605d0d1a5902ae1e8f9f9bed9e961233bbc43 (diff) | |
download | emacs-9de31df2dde735136597d63eb8e2dcc844432c81.tar.gz |
Adapt dired-create-files to copy-directory changes.
* dired-aux.el (dired-create-files): Adapt destination name to
match the new behavior of copy-directory.
Diffstat (limited to 'lisp/dired-aux.el')
-rw-r--r-- | lisp/dired-aux.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 6f33831eb38..cb1324051a7 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -1383,6 +1383,10 @@ ESC or `q' to not overwrite any of the remaining files, (cond ((integerp marker-char) marker-char) (marker-char (dired-file-marker from)) ; slow (t nil)))) + (when (and (file-directory-p from) + (file-directory-p to) + (eq file-creator 'dired-copy-file)) + (setq to (file-name-directory to))) (condition-case err (progn (funcall file-creator from to dired-overwrite-confirmed) |