Move to Zip Method?

May 25, 2009 at 6:22 PM

Hi Cheeso,

Would consideration be given to MoveItem/File/Directory Methods?
i.e. If file/directory is added to zip without error, source is deleted.

I presume from this post http://dotnetzip.codeplex.com/Thread/View.aspx?ThreadId=49218 that as the file needs to exist when the save method is called, that a proposal would be; when the save is called and completed without error, the source file/directory could then be deleted...

Yes, ok I could program this myself in my code, but it seems like a nicer way if the library could manage it?

i.e.
create zip
addfile
addfile
addfile
addfile
try save
deletefile
deletefile
deletefile
deletefile

becomes:
create zip
movefile
movefile
movefile
movefile
try save

Thanks,
Paul

Coordinator
May 25, 2009 at 10:04 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.