diff options
-rw-r--r-- | ennum.el | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -586,8 +586,15 @@ result as a string." (make-directory directory t)) (defun ennum-copy (source destination &optional quiet) - "Copy file or directory from SOURCE to DESTINATION. Overwrite -if DESTINATION already exists." + "Copy file or directory from SOURCE to DESTINATION. + +Overwrite if DESTINATION already exists. Create any parent +directories required. + +If SOURCE is a file and DESTINATION is a directory, copy SOURCE +to a like-named file under DESTINATION. For DESTINATION to be +recognized as a directory, it should end in a slash. See +`file-name-as-directory'." (unless quiet (message "Copying %s to %s" source destination)) (if (file-directory-p source) |