From 725dee7f492fdb64f0fa784bb2beb5ce09cdb823 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 31 Jul 2020 03:15:20 +0530 Subject: Use ennum-mkdir-p in ennum-copy. * ennum.el (ennum-copy): Use ennum-mkdir-p. --- ennum.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3