|
@@ -41,6 +41,7 @@ int UnZipToDir(string zipFileName, string destDirPath)
|
|
|
unzClose(zfile);
|
|
|
return -1;
|
|
|
}
|
|
|
+ Dbg("zip entry count is %d", global_info.number_entry);
|
|
|
for (int i = 0; i < global_info.number_entry; i++) {
|
|
|
if (unZipCurrentFile(zfile, destDirPath) != UNZ_OK) {
|
|
|
Dbg("unzip fail %s", zipFileName.c_str());
|
|
@@ -240,7 +241,7 @@ int unZipCurrentFile(zipFile zf, string destDirPath)
|
|
|
}
|
|
|
#endif // RVC_OS_WIN
|
|
|
|
|
|
- Dbg("unZipCurrentFile newFileName %s", newFileName.c_str());
|
|
|
+ //Dbg("unZipCurrentFile newFileName %s", newFileName.c_str());
|
|
|
string filestr = newFileName;
|
|
|
//判断是文件还是文件夹
|
|
|
|
|
@@ -270,7 +271,7 @@ int unZipCurrentFile(zipFile zf, string destDirPath)
|
|
|
if (isDir)
|
|
|
{ //创建文件夹
|
|
|
string dirPath = destDirPath + SPLIT_SLASH_STR + newFileName;
|
|
|
- Dbg("creating directory: %s", dirPath.c_str());
|
|
|
+ //Dbg("creating directory: %s", dirPath.c_str());
|
|
|
if (!CreateDirA(dirPath.c_str(), true))
|
|
|
{
|
|
|
Dbg("creating directory fail: dirPath(%s) zipFileName(%s)", dirPath.c_str(), newFileName.c_str());
|
|
@@ -280,7 +281,7 @@ int unZipCurrentFile(zipFile zf, string destDirPath)
|
|
|
else
|
|
|
{ //打开zip里面的文件
|
|
|
string fileNamePath = destDirPath + SPLIT_SLASH_STR + newFileName;
|
|
|
- Dbg("creating file:%s", fileNamePath.c_str());
|
|
|
+ //Dbg("creating file:%s", fileNamePath.c_str());
|
|
|
|
|
|
//先创建文件的父文件夹
|
|
|
int pos = fileNamePath.find_last_of(SPLIT_SLASH);
|