Reputation: 306
is there a way to rename a file that you have extracted using FastZip?
Or do I have to rename it manually using File
?
Upvotes: 0
Views: 665
Reputation: 16802
You will have to rename it after the unzip operation has completed. But - why not write an extension method to the FastZip ExtractZip()
method?
Upvotes: 1
Reputation: 696
I don't think so, I think you'll have to rename it with file (or fileinfo). If you are doing the renaming often and in a particular way you might want to wrap FastZip to include the renaming operations. You might want to wrap File in order to write unit tests without using the file system.
Upvotes: 1