symbian s60 实现 zip 文件解压到指定目录
2010-03-13 20:28:00 来源:WEB开发网核心提示:// as the one in the .zip file. TFileName fileName;fileName.Append(aPath); fileName.Append(*(member->Name()));console->Printf(*(member->Name()));BaflUt
// as the one in the .zip file. TFileName fileName;
fileName.Append(aPath); fileName.Append(*(member->Name()));
console->Printf(*(member->Name()));
BaflUtils::EnsurePathExistsL(aFileSession, fileName); if
(fileName.Find(_L(".")) > 0)//if not dir { RFile file;
User::LeaveIfError(file.Replace(aFileSession, fileName, EFileWrite));
CleanupClosePushL(file); User::LeaveIfError(file.Write(*buffer));
CleanupStack::PopAndDestroy();//file }
CleanupStack::PopAndDestroy(3);//member,buffer,stream }
CleanupStack::PopAndDestroy(); // members
}
更多精彩
赞助商链接