bool
XmlParser::ExtractFromArchive(const char* pArchivePath, const char* pDestinationPath)
{
- bool result = true;
+ bool res = true;
Tizen::Base::Utility::FileUnzipper unzipper;
Tizen::Base::String archivePath = pArchivePath;
Tizen::Base::String destinationPath = pDestinationPath;
- unzipper.Construct(archivePath);
+ result r = unzipper.Construct(archivePath);
+ SysTryReturn(NID_APP, !IsFailed(r), false, E_SYSTEM, "unzipper.Construct() failed.");
+
if (unzipper.UnzipTo(destinationPath) != E_SUCCESS)
{
- result = false;
+ res = false;
}
- return result;
+ return res;
}
-
bool
XmlParser::Parse(const char* pFilePath, bool sendCallbacks)
{