FTP问题

wangjs720 2003-08-30 11:04:33
用CFtpFileFiond::FindFile(pszName)取得ftp.lzu.edu.cn/pub目录下的全部子目录,参数pszName的值应该是什么?
...全文
45 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhanshenpkl 2003-09-01
  • 打赏
  • 举报
回复
如果你要获得整个目录下的文件,包括子目录,你先设置到当前目录如/pub
然后调用FindFile(NULL)函数,之后一定要调用FindNextFile(),再调用IsDirectory()判断是不是目录
WinEggDrop 2003-09-01
  • 打赏
  • 举报
回复
1.change the directory to pub(FtpSetCurrentDirectory())
2.CFtpFileFind::FindFile("*.*") or FtpFindFirstFile()
3.check whether the found stuff is directory
lovemaggic 2003-09-01
  • 打赏
  • 举报
回复
CFileFind fileFind;
SetCurrentDirectory(szLocDirectory);
int count = 0;
CString FTPServer[100];
BOOL bContinue=fileFind.FindFile("*.*");
while(bContinue)
{
bContinue=fileFind.FindNextFile();
count++;
if(fileFind.IsDirectory()) FTPServer[count] = finder.GetFilePath();
}


wangjs720 2003-08-31
  • 打赏
  • 举报
回复
UP
wangjs720 2003-08-30
  • 打赏
  • 举报
回复
我用/pub/*.* 试过了,不行
zhi_liu6 2003-08-30
  • 打赏
  • 举报
回复
路径啊
比如
/pub
/incoming
之类的

18,356

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧