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

Allow nested search #6

Merged
merged 1 commit into from
Oct 28, 2019
Merged

Allow nested search #6

merged 1 commit into from
Oct 28, 2019

Conversation

Jetroid
Copy link
Contributor

@Jetroid Jetroid commented Sep 20, 2019

Provides the option to make a nested search if required.

@Birne94
Copy link

Birne94 commented Oct 24, 2019

I originally had the same issue, but was able to resolve it by appending a trailing / to my search directory:

webp:
  enabled: true
  quality: 100
  regenerate: false

  img_dir:
    - '/images/'

The plugin already performs a recursive search, but only when the path ends with a slash (/images**/*.* vs /images/**/*.*):

for imgfile in Dir[imgdir_source + "**/*.*"]

@sverrirs sverrirs merged commit 318fe64 into sverrirs:master Oct 28, 2019
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.

4 participants