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

Fix: don't override files with the same name #26

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

Conversation

xjcb-de
Copy link

@xjcb-de xjcb-de commented Oct 13, 2024

I run into a case where there were multiple files in the HAR that had the same filepath and filename. The ZIP would then only include one of them.

This PR alters the filename if there's already one existing and adds a numbered suffix:
file.png --> file_2.png --> file_3.png ...

@JC3
Copy link
Owner

JC3 commented Oct 13, 2024

Thanks. Will this work if the filename has no extension?

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.

2 participants