From 27dfa30181dbf01b21a1084f329ff193c00a2701 Mon Sep 17 00:00:00 2001 From: mwoz123 Date: Fri, 29 Jun 2018 20:37:39 +0200 Subject: [PATCH] Send2ebook fix download after refactor from #3924 (#4027) * fix send2ebook download after refactor from #3924 * restore removal from server --- plugins/send2ebook.koplugin/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/send2ebook.koplugin/main.lua b/plugins/send2ebook.koplugin/main.lua index a9880650d..99e49ff40 100644 --- a/plugins/send2ebook.koplugin/main.lua +++ b/plugins/send2ebook.koplugin/main.lua @@ -26,7 +26,7 @@ local send2ebook_settings function Send2Ebook:downloadFileAndRemove(connection_url, remote_path, local_download_path) local url = connection_url .. remote_path - local response = FtpApi:downloadFile(url) + local response = FtpApi:ftpGet(url) if response ~= nil then local_download_path = util.fixUtf8(local_download_path, "_") @@ -142,6 +142,7 @@ function Send2Ebook:process() if total_entries > 1 then total_entries = total_entries -2 end --remove result "../" (upper folder) and "./" (current folder) for idx, ftp_file in ipairs(ftp_files_table) do logger.dbg("Send2Ebook: processing ftp_file:", ftp_file) + --TODO recursive download folders if ftp_file["type"] == "file" then info = InfoMessage:new{ text = T(_("Processing %1/%2"), count, total_entries) }