Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create parent folder when it does not exist #49

Open
yfzhao20 opened this issue Feb 27, 2023 · 1 comment
Open

Create parent folder when it does not exist #49

yfzhao20 opened this issue Feb 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@yfzhao20
Copy link

yfzhao20 commented Feb 27, 2023

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 yfzhao20 added the enhancement New feature or request label Feb 27, 2023
@yfzhao20 yfzhao20 mentioned this issue Mar 3, 2023
@stdcout42
Copy link

This would be great to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants