BOOL IsFolderEmpty(string path)
{
string str = path + "\\*.*";
CFileFind ff;
BOOL bFound;
bFound = ff.FindFile(str.c_str());
while (bFound)
{
bFound = ff.FindNextFile();
if (!ff.IsDots())
{
return FALSE;
}
}
ff.Close();

return TRUE;
}

留待后查,同时方便他人