FILEINFO* FtpManager::FileRename(CString directory,CString strAoyaDeviceName,CString strKoDeviceName,CString strAuditionFlg,CString tempFlg,CString tempPath)
{
CString strNewFileName;
CString strFileName;
        CStringList DirList;
CFileFind tempFind; FILEINFO* fileInfo = new FILEINFO();

pFtpCon->SetCurrentDirectory(_T(directory)); CFtpFileFind finder(pFtpCon); BOOL bWorking = finder.FindFile(_T("*"));
while (bWorking)
{
int num = 0;
bWorking = finder.FindNextFile();
strFileName = finder.GetFileName();
            strNewFileName = strFileName;
strNewFileName.Replace(strAoyaDeviceName,strKoDeviceName);
num = strNewFileName.Find(strKoDeviceName+"_20");
if (!(strAuditionFlg == "0" && num != -1)){

                            ???????========     
             
}

if (finder.IsDots())
continue;
if (finder.IsDirectory())
{
DirList.AddTail(strFileName);
}
}
finder.Close(); while (!DirList.IsEmpty())
{
directory = DirList.RemoveHead() + _T("/");
FILEINFO* tempInfo = NULL;
          tempInfo = FileRename(directory,strAoyaDeviceName,strKoDeviceName,strAuditionFlg,tempFlg,tempPath);         
if (tempInfo != NULL) {
delete tempInfo;
}
pFtpCon->SetCurrentDirectory(_T(".."));
}
return fileInfo;
}
以上问号处是对ftp服务器上的文件进行重命名操作,不能删除旧的文件,请问利用mfc该如何处理阿?我现在不知如何保留以前的文件,谢谢