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

Adds new exists logic that can optionally ignore the file extension #5154

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Lagicrus
Copy link

@Lagicrus Lagicrus commented Feb 2, 2024

Fixes #5147

Adds a new setting to the configuration that, when enabled (default false), will use glob to check if that file exists with any file extension.
This means that during the pre-download phase when the path.exists function is called.
Where before, when it checked to see if ./random/path/to/image_5.jpg exists on the disk and it only finds ./random/path/to/image_5.png, it will return False as the file extension does not match.
With this tweak, it will return True as the path + name match as the file extension is ignored.

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.

Enhancement - Skip downloading an image if the file name matches excluding the file extension
1 participant