Arduino TinyFTP
All Classes Functions Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ftp_client::FTPFileIterator Class Reference

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)
 
FTPFileIteratorbegin ()
 
FTPFileIteratorend ()
 
FTPFileIteratoroperator++ ()
 
FTPFileIteratoroperator++ (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

FTPBasicAPIapi_ptr = nullptr
 
Stream * stream_ptr = nullptr
 
FileMode file_mode
 
const char * directory_name = ""
 
String buffer = ""
 

Detailed Description

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.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: