mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +01:00
Add support for FTPS upload and download in RDCatch.
cURL supports 'ftps://' URLs so this change was trivial.
This commit is contained in:
@@ -81,6 +81,7 @@ QStringList RDDelete::supportedSchemes() const
|
||||
schemes.push_back("file");
|
||||
schemes.push_back("ftp");
|
||||
schemes.push_back("sftp");
|
||||
schemes.push_back("ftps");
|
||||
|
||||
return schemes;
|
||||
}
|
||||
@@ -131,7 +132,7 @@ RDDelete::ErrorCode RDDelete::runDelete(const QString &username,
|
||||
curl_easy_setopt(curl,CURLOPT_DEBUGFUNCTION,DeleteErrorCallback);
|
||||
}
|
||||
|
||||
if(conv_target_url.scheme().toLower()=="ftp") {
|
||||
if(conv_target_url.scheme().toLower()=="ftp"||conv_target_url.scheme().toLower()=="ftps") {
|
||||
QStringList f0=conv_target_url.path().split("/",QString::SkipEmptyParts);
|
||||
filename=f0.last();
|
||||
f0.removeLast();
|
||||
|
||||
@@ -82,6 +82,7 @@ QStringList RDDownload::supportedSchemes() const
|
||||
|
||||
schemes.push_back("file");
|
||||
schemes.push_back("ftp");
|
||||
schemes.push_back("ftps");
|
||||
schemes.push_back("http");
|
||||
schemes.push_back("https");
|
||||
schemes.push_back("sftp");
|
||||
|
||||
@@ -85,6 +85,7 @@ QStringList RDUpload::supportedSchemes() const
|
||||
schemes.push_back("file");
|
||||
schemes.push_back("ftp");
|
||||
schemes.push_back("sftp");
|
||||
schemes.push_back("ftps");
|
||||
|
||||
return schemes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user