是什么导致FXP从服务器到服务器的传输文件的字节数为0?使用FluentFTP TransferFile

问题描述

什么会导致FXP从服务器到服务器的传输文件的字节数为0?使用FluentFTP TransferFile API

我遵循他们的准则@ https://github.com/robinrodricks/FluentFTP/wiki/FXP-Server-To-Server

这是代码

Using sourceClient = New FtpClient(Host,_CurrentPublisher.Username,_CurrentPublisher.Password)
            
            sourceClient.Encoding = Text.Encoding.UTF8
            sourceClient.RetryAttempts=2
            sourceClient.Connect()

            using remoteClient = New FtpClient(ImpelsysHost,impelsys_UserName,impelsys_Password)

                remoteClient.Connect()

                if remoteClient.IsConnected Then

                    remoteClient.Encoding = Text.Encoding.UTF8
                    remoteClient.RetryAttempts=2

                    dim transferResult = sourceClient.TransferFile("/images/" & filename,remoteClient,"/temp/" & filename,False,FtpRemoteExists.NoCheck,verifyOptions:=FtpVerify.None)

                End If
            End Using

End Using

感谢您的帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)