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

Add config option for flattening per profile directories #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jnterry
Copy link

@jnterry jnterry commented Jan 7, 2021

This PR adds a config controlled ability to flatten the hierachy of per-profile folders into a single folder, eg, (assuming customFolder is set to "/images") rather than:

  • /images/small/img.jpg
  • /images/large/img.jpg
  • /images/img.jpg

It is now possible to generate the following files:

This is achieved with a new config option, profileNameSeparator which controls the character (or string) used to seperate the file name from the profile name suffix.

This defaults to null, which uses the existing behaviour of a directory per profile.


Note that if keepOriginal is set, the original file is still placed into a seperate directory.

@jnterry jnterry changed the title Add option for removing per profile directories Add config option for flattening per profile directories Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant