Support ability to extract duplicate file names
description
Hi,
I have a zip file that has been created from email messages where each file name within the archive is created from the subject title of the email.
The problem is if I have emails with the same subject title.
I would like the ability to extract both files and keep the files within the same extracted folder.
As since there would be a name clash it would be useful to have the ability to identify the clash and take appropriate action such as append/prefix text to one of the files to make then unique.
Such as it would be nice if a delegate method could be provided when this event occurs which would allow the developer to take specific action.
Is this possible?
e.g. see code snippet of usage:
public void ExtractProgress(object sender, ExtractProgressEventArgs e) {
if (e.EventType == ZipProgressEventType.Extracting_ExtractEntryWouldOverwrite) {
ZipEntry entry = e.CurrentEntry;
entry.FileName = String.Format("Copy of {0}", entry.FileName);
}
}
Many Thanks in advance,
Marty