aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ennum.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/ennum.el b/ennum.el
index 0619e04..12fdc8d 100644
--- a/ennum.el
+++ b/ennum.el
@@ -373,7 +373,8 @@ non-nil, include directories in the output."
if DESTINATION already exists."
(if (file-directory-p source)
(copy-directory source destination)
- (make-directory (file-name-directory destination) t)
+ (when (file-name-directory destination)
+ (ennum-mkdir-p (file-name-directory destination)))
(copy-file source destination t)))
(defun ennum--filter-map (function sequence)