فهرست منبع

Bug 1337: Support for long local paths with FTP protocol

https://winscp.net/tracker/1337

Source commit: b33021729503d811e8be693386e568f703ca0c8b
Martin Prikryl 7 سال پیش
والد
کامیت
32e89d35fc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      source/core/FtpFileSystem.cpp

+ 1 - 1
source/core/FtpFileSystem.cpp

@@ -1493,7 +1493,7 @@ void __fastcall TFTPFileSystem::FileTransfer(const UnicodeString & FileName,
 {
   FILE_OPERATION_LOOP_BEGIN
   {
-    FFileZillaIntf->FileTransfer(LocalFile.c_str(), RemoteFile.c_str(),
+    FFileZillaIntf->FileTransfer(ApiPath(LocalFile).c_str(), RemoteFile.c_str(),
       RemotePath.c_str(), Get, Size, Type, &UserData);
     // we may actually catch response code of the listing
     // command (when checking for existence of the remote file)