通过ftp响应创建FTP资源管理器 [英] Create FTP Explorer via ftp Response

查看:88
本文介绍了通过ftp响应创建FTP资源管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi guys

我想知道如何使用文件名,大小,修改日期在列表中创建FTP资源管理器显示ftp目录和文件。

i want know how to make a FTP Explorer show ftp Directory and Files in Treeview with columns File name , Size , Modify date.

并设置远程文件的上下文菜单:通过WebBrowser从ftp复制链接文件和下载文件。

and set Context menu for remote files: Copy link file and Download file from ftp via WebBrowser.

我多次在网上查找但是找不到好的来源或方式。

i more times look on web for this but don't find good source or way.

请帮帮我。 

Please Help me. 

推荐答案


hi guys

hi guys

我想知道如何让FTP Explorer在Treeview中显示ftp目录和文件,列名为文件名,大小,修改日期。

i want know how to make a FTP Explorer show ftp Directory and Files in Treeview with columns File name , Size , Modify date.

并设置远程文件的上下文菜单:通过WebBrowser从ftp复制链接文件和下载文件。

and set Context menu for remote files: Copy link file and Download file from ftp via WebBrowser.

我更多时间在网上查找,但找不到好的来源或方式。

i more times look on web for this but don't find good source or way.

请帮帮我。 

Please Help me. 

如果你想从头开始以控制一切,看一下WebRequestMethods:

If you want to start from scratch so that you control everything, have a look at the WebRequestMethods:

https://msdn.microsoft.com/en-us/library/ system.net.webrequestmethods.ftp(v = vs.110).aspx

https://msdn.microsoft.com/en-us/library/system.net.webrequestmethods.ftp(v=vs.110).aspx

请注意,其中显示了两个目录列表:

Notice that there are two directory listings shown there:

ListDirectory 仅获取基本信息,
ListDirectoryDe​​tails 获取更广泛的内容,包括文件大小和 - 如果可用 - 我会称之为
a"服务器日期"。那个日期可能代表这个或那个,但这就是服务器配置的地方。时间可能是也可能不是UTC - 再次,这取决于他们的配置。

ListDirectory gets the basic information only and ListDirectoryDetails gets a broader lot including the file's size and - if available - what I'll call a "server date". That date might represent this or that, but that's where it's up to the server's configuration. The time may or may not be UTC - again, that's up to their configuration.

这总结了获取信息所需的内容:

This sums up what's needed to get the information:

https ://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-list-directory-contents-with-ftp

https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-list-directory-contents-with-ftp

*****


这篇关于通过ftp响应创建FTP资源管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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