From 8da34945845ab6b4968d4b505836ec784394b4a9 Mon Sep 17 00:00:00 2001 From: MirkoAusFFM <121615576+MirkoAusFFM@users.noreply.github.com> Date: Sat, 14 Jan 2023 16:22:18 +0100 Subject: [PATCH 1/2] Update FTPClient_Generic_Impl.h Good client, but please use the params uniformly. THX! --- src/FTPClient_Generic_Impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FTPClient_Generic_Impl.h b/src/FTPClient_Generic_Impl.h index 8207c19..fd1a013 100644 --- a/src/FTPClient_Generic_Impl.h +++ b/src/FTPClient_Generic_Impl.h @@ -279,7 +279,7 @@ void FTPClient_Generic::OpenConnection() ///////////////////////////////////////////// -void FTPClient_Generic::RenameFile(char* from, char* to) +void FTPClient_Generic::RenameFile(const char* from, const char* to) { FTP_LOGINFO("Send RNFR"); @@ -424,7 +424,7 @@ void FTPClient_Generic::InitFile(const char* type) ///////////////////////////////////////////// -void FTPClient_Generic::AppendFile (char* fileName) +void FTPClient_Generic::AppendFile (const char* fileName) { FTP_LOGINFO("Send APPE"); From 7a01b8ade0e7a0fd90233fd9e68dda7702ee86a3 Mon Sep 17 00:00:00 2001 From: MirkoAusFFM <121615576+MirkoAusFFM@users.noreply.github.com> Date: Sun, 15 Jan 2023 17:16:32 +0100 Subject: [PATCH 2/2] Add files via upload --- src/FTPClient_Generic.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FTPClient_Generic.hpp b/src/FTPClient_Generic.hpp index e09538e..42d035a 100644 --- a/src/FTPClient_Generic.hpp +++ b/src/FTPClient_Generic.hpp @@ -138,12 +138,12 @@ class FTPClient_Generic void CloseConnection(); bool isConnected(); void NewFile (const char* fileName); - void AppendFile( char* fileName); + void AppendFile(const char* fileName); void WriteData (unsigned char * data, int dataLength); void CloseFile (); void GetFTPAnswer (char* result = NULL, int offsetStart = 0); void GetLastModifiedTime(const char* fileName, char* result); - void RenameFile(char* from, char* to); + void RenameFile(const char* from, const char* to); void Write(const char * str); void InitFile(const char* type); void ChangeWorkDir(const char * dir);