0

dired-do-copy copies a symlink as a symlink. Sometimes I want to copy the actual file of a symlink, not make a copy of the symlink. Is there already a way to do that? I can write some elisp code but seems this must be already builtin to dired.

0

1 Answer 1

1

Not that I can see.

You could use: ! cp -L ? <newname> RET

If you want to roll your own, C-hf file-truename is the elisp function that chases symlinks to return the fully-dereferenced file name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.