aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2020-07-31 03:15:20 +0530
committerArun Isaac2020-07-31 03:15:20 +0530
commit725dee7f492fdb64f0fa784bb2beb5ce09cdb823 (patch)
treec7a1c855a4b0b4d22f6fa1e17ed86a4d6a81728b
parent99b451aa472ede0d64ab8a5bb97382356c4d3353 (diff)
downloadennum-725dee7f492fdb64f0fa784bb2beb5ce09cdb823.tar.gz
ennum-725dee7f492fdb64f0fa784bb2beb5ce09cdb823.tar.lz
ennum-725dee7f492fdb64f0fa784bb2beb5ce09cdb823.zip
Use ennum-mkdir-p in ennum-copy.
* ennum.el (ennum-copy): Use ennum-mkdir-p.
-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)