summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSCratORS <scrators@mail.ru>2021-11-15 11:26:25 +0100
committerGitHub <noreply@github.com>2021-11-15 11:26:25 +0100
commit86a91561bc34eb04b32630f7c589fbccd912db79 (patch)
treecadcfb932590697a1d9bccabd08195a2048acecd
parentUpdate FTPServer.cpp (diff)
downloadFTPCLientServer-86a91561bc34eb04b32630f7c589fbccd912db79.tar
FTPCLientServer-86a91561bc34eb04b32630f7c589fbccd912db79.tar.gz
FTPCLientServer-86a91561bc34eb04b32630f7c589fbccd912db79.tar.bz2
FTPCLientServer-86a91561bc34eb04b32630f7c589fbccd912db79.tar.lz
FTPCLientServer-86a91561bc34eb04b32630f7c589fbccd912db79.tar.xz
FTPCLientServer-86a91561bc34eb04b32630f7c589fbccd912db79.tar.zst
FTPCLientServer-86a91561bc34eb04b32630f7c589fbccd912db79.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)