Skip to content

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

Open
xjcb-de wants to merge 1 commit into
JC3:masterfrom
xjcb-de:master
Open

Fix: don't override files with the same name#26
xjcb-de wants to merge 1 commit into
JC3:masterfrom
xjcb-de:master

Conversation

@xjcb-de

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

Copy link
Copy Markdown

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

JC3 commented Oct 13, 2024

Copy link
Copy Markdown
Owner

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

@chicheese

Copy link
Copy Markdown

Would love if this feature was merged. It solves the issue I run into every time I use the extractor for work. Love it.

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.

3 participants