summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Plasa <dplasa@gmail.com>2022-01-03 14:19:51 +0100
committerGitHub <noreply@github.com>2022-01-03 14:19:51 +0100
commit38d1e32959da6e0ee21e2acb2e72e3c635349a90 (patch)
tree157ce3eda8b370895dc5cf5a1a3a794607b9bf6b
parentfix silly typo (diff)
parentCorrect client upload in blocking mode (diff)
downloadFTPCLientServer-38d1e32959da6e0ee21e2acb2e72e3c635349a90.tar
FTPCLientServer-38d1e32959da6e0ee21e2acb2e72e3c635349a90.tar.gz
FTPCLientServer-38d1e32959da6e0ee21e2acb2e72e3c635349a90.tar.bz2
FTPCLientServer-38d1e32959da6e0ee21e2acb2e72e3c635349a90.tar.lz
FTPCLientServer-38d1e32959da6e0ee21e2acb2e72e3c635349a90.tar.xz
FTPCLientServer-38d1e32959da6e0ee21e2acb2e72e3c635349a90.tar.zst
FTPCLientServer-38d1e32959da6e0ee21e2acb2e72e3c635349a90.zip
-rw-r--r--FTPClient.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/FTPClient.cpp b/FTPClient.cpp
index 51456f9..4ea31be 100644
--- a/FTPClient.cpp
+++ b/FTPClient.cpp
@@ -19,9 +19,9 @@ const FTPClient::Status &FTPClient::transfer(const String &localFileName, const
_remoteFileName = remoteFileName;
_direction = direction;
- if (direction & FTP_GET)
+ if (direction & FTP_GET_NONBLOCKING)
file = THEFS.open(localFileName, "w");
- else if (direction & FTP_PUT)
+ else if (direction & FTP_PUT_NONBLOCKING)
file = THEFS.open(localFileName, "r");
if (!file)