obsidian-paste-image-rename icon indicating copy to clipboard operation
obsidian-paste-image-rename copied to clipboard

Create parent folder when it does not exist

Open yfzhao20 opened this issue 1 year ago • 1 comments

When we set image name pattern like {{fileName}}.assets/image-{{DATE:YYYYMMDD-HHmmssSSS}} and parent folder {{fileName}}.assets does not exist, the plugin will throw an error. It will be great if it can automatically create the parent folder.

This feature may allow to customize the parent folder (like waht custom-attachment-location does) and automatically move image to that folder. Thanks in advance!


A possible idea: split filename with / and check if the folder exists. 🧐

yfzhao20 avatar Feb 27 '23 06:02 yfzhao20

This would be great to have.

stdcout42 avatar Mar 11 '23 07:03 stdcout42