1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-28 15:35:08 +03:00

Bug 1337: Support for long local paths with FTP protocol

https://winscp.net/tracker/1337

Source commit: b33021729503d811e8be693386e568f703ca0c8b
This commit is contained in:
Martin Prikryl
2018-05-22 14:22:37 +00:00
parent 2bd3acfc7e
commit 32e89d35fc

View File

@@ -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)