描述:把一个非空文件夹,比如~/.config/emacs/cfg复制到~/,然后再用dired-do-copy复制一次,提示
Copy /home/me/.config/emacs/cfg recursively? (y or n) y
按y确认报错:
Copy: ‘/home/me/.config/emacs/cfg’ to ‘/home/me/’ failed: (file-already-exists 文件已存在 /home/me/cfg)
配置(Archlinux, Emacs 27.1):
(use-package dired
:hook ((dired-mode . auto-revert-mode)
(dired-mode . dired-hide-details-mode))
:config
(setq dired-listing-switches "-Alh --group-directories-first")
(setq dired-recursive-copies t))
(use-package dired-x
:after dired)