harextract icon indicating copy to clipboard operation
harextract copied to clipboard

Fix: don't override files with the same name

Open xjcb-de opened this issue 1 year ago • 1 comments

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 ...

xjcb-de avatar Oct 13 '24 17:10 xjcb-de

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

JC3 avatar Oct 13 '24 17:10 JC3