tags:

views:

441

answers:

1

I'm trying to parse the result of the Ftp.ListDirectoryDetails command, I want just the FileName and the last modification date Not Directories.

The command returns this:

"01-21-09 06:16PM rattandom" "01-21-09 08:01PM 9900 myfile.txt"

Does somebody know the way to parse it? I was reading and if the server is Windows or Unix it will return something different. The result that I paste is for an FTP in a Windows 2003 Server

+1  A: 

FTP list results are non-standard so every FTP server could potentially return something different.

Spencer Ruport
and what i have to do? there is an universal parse?
jmpena
You will have different parsing for every possible FTP server you might see. There is no consistent format to get the information you want.
Joe