How to apply sort by date when using FTP listdirectory .net 2.0

M

MS

Hi,

I am using ftpwebrequest in .net 2.0 to download files form unix ftp
server. I want to download files in the ascending order of date time stamp.
How can I sort the files based on datetime? I need to download oldest file
first. Is there any way I can get files in that order. Any help will be
appreciated

Thanks
 
I

Ignacio Machin ( .NET/ C# MVP )

Hi,

I am using ftpwebrequest in .net 2.0 to  download files form unix ftp
server. I want to download files in the ascending order of date time stamp.
How can I sort the files based on datetime? I need to download oldest file
first. Is there any way I can get files in that order. Any help will be
appreciated

Thanks

Get the list of the files, sort the list and then download the files :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top