Extracts the files and folders contained in the specified zip file to the folder where the file belongs.

Namespace: DotNetNuke.Services.FileSystem
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public virtual void UnzipFile(
	IFileInfo file
)
Visual Basic
Public Overridable Sub UnzipFile ( 
	file As IFileInfo
)

Parameters

file
Type: DotNetNuke.Services.FileSystem..::..IFileInfo
The file to unzip.

Return Value

Total files count in the zip file.

Implements

IFileManager..::..UnzipFile(IFileInfo)

Exceptions

ExceptionCondition
System..::..ArgumentExceptionThrown when file is not a zip compressed file.
System..::..ArgumentNullExceptionThrown when file or destination folder are null.

See Also