ftp中的递归列表文件 [英] recursive listing files in ftp
本文介绍了ftp中的递归列表文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
即使在从ftp到c#的子文件夹中,我也需要列出所有文件。怎么做?
Hi,
I need to list all the FILES even in subfolders from ftp through c#. How to do this?
推荐答案
一步一步。
您无法获取文件夹和文件树,因此您必须要求提供特定文件夹的文件[和子文件夹]列表。
但实际上它实现起来非常简单,而且速度更快(一次仅加载1个或几个级别)
干杯,
Edo
[如果您需要简单FTP操作的示例代码,只是在这里发表回复或新问题]
Step by step.
You cannot get a tree of folders and files, so you have to ask for a list of files [and subfolders] of a specific folder.
But it''s actually quite simple to implement, as well as it is faster (to load only 1 or a couple of levels at a time)
Cheers,
Edo
[if you need sample code for simple FTP actions, just post a reply here or a new question]
这篇关于ftp中的递归列表文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文