如何提取网站中包含的文件列表? [英] How to extract the list of files contained in a website?

查看:197
本文介绍了如何提取网站中包含的文件列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我得到网站的文件列表
我以前是通过c#
完成此操作的 我不知道解决办法
如果您知道解决方法,请给我写信
我基本上想编写一个程序来复制网站.
感谢您的帮助.
谢谢.

Hi,
I get list of files to a website
I used to do this from c #
I do not know the solution
If you know a solution to this please write to me
I basically want to write a program to copy a website.
Thanks for your help already.
Thank you.

推荐答案

以下代码用于获取特定目录(包括所有子目录)中特定扩展文件的列表.

The below code is used to get the list of specific extension files within a specific directory including all sub directories.

public void GetListofFiles(String webDirectory, String extensionType)
{
   String[] filePaths = Directory.GetFiles(@webDirectory, extensionType
                                 SearchOption.AllDirectories);
   // perform the file operations
}


但这对我没有帮助.
我想要类似的软件来扫描网站.
我只找到文件名和文件夹
并进行复制操作.
But this did not help me.
I want something similar software scans Web sites.
I find only the file names and folders
And copy operations.


这篇关于如何提取网站中包含的文件列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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