commit 76e9ccf384f49370628e31b05dda29e5fa7b921c
parent 806a973cb25087e5ea7550a3d1c5da7e2393bfed
Author: Feng Shu <tumashu@163.com>
Date: Thu, 23 May 2019 22:07:15 +0800
Make sure org-download-screenshot-file's directory exist.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/org-download.el b/org-download.el
@@ -300,6 +300,7 @@ COMMAND is a format-style string with two slots for LINK and FILENAME."
The screenshot tool is determined by `org-download-screenshot-method'."
(interactive)
(let ((default-directory "~"))
+ (make-directory (file-name-directory org-download-screenshot-file) t)
(shell-command (format org-download-screenshot-method
org-download-screenshot-file)))
(org-download-image org-download-screenshot-file))