以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  反馈一个bug?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=108829)

--  作者:lyx4040
--  发布时间:2017/10/30 16:10:00
--  反馈一个bug?
 在用代码ftp 上传和下载的时候,如果文件名没有扩展名,会失败。

--  作者:有点甜
--  发布时间:2017/10/30 16:53:00
--  

我测试没问题,如代码

 

Dim ftp1 As New FtpClient
ftp1.Host="127.0.0.1"
ftp1.Account = "test"
ftp1.Password = "test"
If ftp1.Upload("d:\\aaa","/testaaa") = True Then
    Messagebox.show("上传完成!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
    Messagebox.show("上传失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If