How do i get a directory listing for a folder on the web?
Posted
by JimDel
on Stack Overflow
See other posts from Stack Overflow
or by JimDel
Published on 2010-06-17T17:53:37Z
Indexed on
2010/06/17
18:03 UTC
Read the original article
Hit count: 203
How do I get a directory listing for a folder on the web? I'm looking to download a group of small files from a folder on the web. I can do it easily with a a single file but I'm not sure how to do it for multiple files. If there was something similar to the code below but for a folder on the web I think I can do it.
private void button1_Click(object sender, EventArgs e)
{
DirectoryInfo di = new DirectoryInfo("c:/myFolder");
FileInfo[] rgFiles = di.GetFiles("*.*");
foreach (FileInfo fi in rgFiles)
{
//Do Something with each of them
}
}
Thanks
© Stack Overflow or respective owner