BaflUtils::FileExists()
BaflUtils::FolderExists()
ConeUtils::FileExists()
...
都只是浮云,全世界都用这些判断唉,好吧
TEntry entry;
//RFs iFs....
if (iFs.Entry(aPath, entry) != KErrNone)
{
//文件不存在
}
到此,不解释
本文介绍了一种通过文件系统调用来检查文件是否存在的方法,并提供了一个简单的示例代码片段。这种方法适用于需要验证路径是否存在的情况。
BaflUtils::FileExists()
BaflUtils::FolderExists()
ConeUtils::FileExists()
...
都只是浮云,全世界都用这些判断唉,好吧
TEntry entry;
//RFs iFs....
if (iFs.Entry(aPath, entry) != KErrNone)
{
//文件不存在
}
到此,不解释
2082
1734
1345

被折叠的 条评论
为什么被折叠?