SLProject 4.0.000
FtpUtils.h File Reference
#include <string>
#include <vector>
Include dependency graph for FtpUtils.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  FtpUtils
 FtpUtils provides networking functionality via the FTP protocol.
 

Functions

bool FtpUtils::uploadFileLatestVersion (const string &fileDir, const string &fileName, const string &ftpHost, const string &ftpUser, const string &ftpPwd, const string &ftpDir, string &errorMsg)
 Uploads the file to the ftp server. checks if the filename already exists and adds a version number. More...
 
bool FtpUtils::downloadFileLatestVersion (const string &fileDir, const string &fileName, const string &ftpHost, const string &ftpUser, const string &ftpPwd, const string &ftpDir, string &errorMsg)
 Download the file from the ftp server which has the latest version and store it as fileName locally. More...
 
bool FtpUtils::uploadFile (const string &fileDir, const string &fileName, const string &ftpHost, const string &ftpUser, const string &ftpPwd, const string &ftpDir, string &errorMsg)
 Uploads file to the ftp server. More...
 
bool FtpUtils::downloadFile (const string &fileDir, const string &fileName, const string &ftpHost, const string &ftpUser, const string &ftpPwd, const string &ftpDir, string &errorMsg)
 Download file from the ftp server. More...
 
bool FtpUtils::downloadAllFilesFromDir (const string &fileDir, const string &ftpHost, const string &ftpUser, const string &ftpPwd, const string &ftpDir, const string &searchFileTag, string &errorMsg)
 
bool FtpUtils::getAllFileNamesWithTag (ftplib &ftp, const string &localDir, const string &searchFileTag, vector< string > &retrievedFileNames, string &errorMsg)
 Get a list of all filenames with given search file tag in remote directory. More...
 
string FtpUtils::getLatestFilename (ftplib &ftp, const string &fileDir, const string &fileName)
 Returns the latest fileName of the same fullPathAndFilename. More...
 
int FtpUtils::getVersionInFilename (const string &filename)
 Returns the version number at the end of the fileName. More...