Patch from Sebastian Rose.
@@ -1,5 +1,8 @@
2008-05-16 Carsten Dominik <dominik@science.uva.nl>
+ * org-publish.el (org-publish-attachment): Create publishing
+ directory if it does not yet exist.
+
* org-table.el (org-calc-default-modes): Change default number
format to (float 8).
@@ -512,6 +512,8 @@ See `org-publish-org-to' to the list of arguments."
(require 'eshell)
(require 'esh-maint)
(require 'em-unix))
+ (unless (file-directory-p pub-dir)
+ (make-directory pub-dir t))
(eshell/cp filename pub-dir))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;