FTPFileIterator The file name iterator can be used to list all available files and directories. We open a separate session for the ls operation so that we do not need to keep the result in memory and we don't lose the data when we mix it with read and write operations. More...
#include <FTPFileIterator.h>
Public Member Functions | |
FTPFileIterator (FTPBasicAPI *api, const char *dir, FileMode mode) | |
FTPFileIterator & | begin () |
FTPFileIterator & | end () |
FTPFileIterator & | operator++ () |
FTPFileIterator & | operator++ (int na) |
FTPFile | operator* () |
bool | operator!= (const FTPFileIterator &comp) |
bool | operator== (const FTPFileIterator &comp) |
bool | operator> (const FTPFileIterator &comp) |
bool | operator< (const FTPFileIterator &comp) |
bool | operator>= (const FTPFileIterator &comp) |
bool | operator<= (const FTPFileIterator &comp) |
const char * | fileName () |
Protected Member Functions | |
void | readLine () |
Protected Attributes | |
FTPBasicAPI * | api_ptr = nullptr |
Stream * | stream_ptr = nullptr |
FileMode | file_mode |
const char * | directory_name = "" |
String | buffer = "" |
FTPFileIterator The file name iterator can be used to list all available files and directories. We open a separate session for the ls operation so that we do not need to keep the result in memory and we don't lose the data when we mix it with read and write operations.