Hi all!
I'm trying to update a existing zipfile adding serveral files, but when i call "CommitUpdate" i receive a exception with a text similar to "File name of original file.zip.xxx.tmp" not found.
The code used to update zip:
Dim zipFileO As Zip.ZipFile
zipFileO = New Zip.ZipFile(ZipFile)
zipFileO.NameTransform =
New NameTransformRelativePath(RelativePath) 'used to remove the entire path of files and leave a relative path.
Dim astrFiles() As String = FileSystemHelper.GetFiles(DirPath)
For Each strFile As String In astrFiles
zipFileO.BeginUpdate()
zipFileO.Add(strFile)
zipFileO.CommitUpdate() 'This metod call fires a FileNotFound Exception
Next
zipFileO.Close()
What is wrong at this code?
Thanks for replies!