Browse Source

Merge branch 'maint'

Kyle Meyer 9 năm trước cách đây
mục cha
commit
c8f2eec425
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      lisp/ob-tangle.el

+ 2 - 0
lisp/ob-tangle.el

@@ -185,6 +185,8 @@ Return a list whose CAR is the tangled file name."
 
 (defun org-babel-tangle-publish (_ filename pub-dir)
   "Tangle FILENAME and place the results in PUB-DIR."
+  (unless (file-exists-p pub-dir)
+    (make-directory pub-dir t))
   (mapc (lambda (el) (copy-file el pub-dir t)) (org-babel-tangle-file filename)))
 
 ;;;###autoload