You could also modify some line in org-attach-attach, for example: ... ((eq method 'cp) (if (file-directory-p file) (copy-directory file attach-file) (copy-file file attach-file))) ...
Best regards, Juan Manuel Juan Manuel Macías writes: > If I have to stay with a workaround that covers many scenarios, I would > stay with Ihor's snippet, which seems to me simpler than the patch that > I suggested before, and you don't need to define new attach > commands/methods. I would vote for a patch in that direction (Ihor's > code).