ISouthRain <isouthr...@qq.com> writes:

> Thanks you work!!
>
> Example:
> (setq org-yank-image-save-method "./myattach/")
> (setq org-yank-dnd-method 'attach)
> Filename: c:/users/abc/test.org
> No have dir: c:/users/abc/myattach/ 
> drag image down't work, no auto make directory c:/users/abc/myattach/
> Message out: Copying file: Operation not permitted, .............. and more
>
> I Have dir: c:/users/abc/myattach/
> drag image is work
>
> Because I saw the function: org--image-yank-media-handler
>     (when (and (not (eq org-yank-image-save-method 'attach))
>                (not (file-directory-p org-yank-image-save-method)))
>       (make-directory org-yank-image-save-method t))
>
> I don't understand why the path is not created automatically??

A simple omission.
Fixed, on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d7b5c19da

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to