1

Topic: ftp - folder list obtaining - where an error?

It is necessary through ftp to receive the folder list on the server. I use the following code on a C ++ with MFC. I receive only one folder - the next call find. FindNextFile () the call returns FALSE. Where an error? CFtpFileFind find (m_pConnection); std:: list <CString> lStr; CString strRoot ("/*. *"); if (find. FindFile (strRoot)) {BOOL bFind = TRUE; while (bFind) {bFind = find. FindNextFile (); if (find. IsDirectory ()) {if (! find. IsDots ()) {CString str = find. GetFileName (); lStr.push_back (str);}}}}

2

Re: ftp - folder list obtaining - where an error?

Hello, iko57, you wrote: I> It is necessary through ftp to receive the folder list on the server. I> I use the following code on a C ++ with MFC. I> I Receive only one folder - the next call find. FindNextFile () the call returns FALSE. I> Where an error? And what speaks GetLastError?

3

Re: ftp - folder list obtaining - where an error?

Hello, iko57, you wrote: I> CString strRoot ("/*. *"); And why not a single star? It not  file system. That speaks if to search so: CString strRoot ("*");