C#:FTP客户端库不起作用 [英] C#: FTP client library not working

查看:131
本文介绍了C#:FTP客户端库不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在C#中使用FTP客户端库,其作者是Jaimon Mathew.

该库运行正常,但是正在上载的文件仅在我的ftp服务器的根目录控制器上被上载.我尝试更改远程路径,但仍在根目录中上载吗?

I am using an FTP Client library in C# whose author is Jaimon Mathew.

The library is working fine but the file being uploaded gets uploaded only at the root director of my ftp server. I have tried changing the remote path but it is still uploading in the root directory?

ft_client.FtpClient ftp = new ft_client.FtpClient(host_server, host_user,host_password);
            ftp.Login();        
            

           ftp.RemotePath  =host_server "/essai/";
                     
            ftp.Upload(@"d:\xxx.txt");



任何帮助将不胜感激.

谢谢.



Any help is greatly appreciated.

Thanks.

推荐答案

问Jaimon Mathew,正如你所说,他写的是谁更好回答你的.我们无法得知某处某人已经写过的那个库.
Ask Jaimon Mathew, as you say, he wrote it who better to answer you. We can''t as we know nothing about that library that someone somewhere has written.


这篇关于C#:FTP客户端库不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆