We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5d0593 commit 9d582afCopy full SHA for 9d582af
chatu.el
@@ -334,7 +334,11 @@
334
;; ~ is after `shell-quote-argument' is \~, which is not
335
;; working. remove it.
336
(script (string-replace "\\~" "~" script))
337
- (result (plist-get keyword-plist :output-path)))
+ (result (plist-get keyword-plist :output-path))
338
+ (result-dir (file-name-directory result)))
339
+ ;; ensure output-dir exists.
340
+ (when (not (file-exists-p result-dir))
341
+ (make-directory result-dir t))
342
(forward-line)
343
(chatu-skip-lines)
344
(let ((process (start-process-shell-command "chatu-buffer" nil script)))
0 commit comments