API Reference > ZipUtils Namespace > Functions > ZipUtils::unzipFile Function
ZipUtils::unzipFile Function
Syntax
C++
OdResult unzipFile(const OdString & filePath, const OdString & targetDir, bool overwriteTargetDir = true);

ZipUtils.h

Parameters 
Description 
const OdString & filePath 
[in] A string containing path to the zip file.  
const OdString & targetDir 
[in] A string containing name of the target directory.  
bool overwriteTargetDir = true 
[in] Return error if false and target directory is not empty; otherwise, overwrite target directory.  

Returns appropriate error code.

Unzips file to directory.

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.