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
There is a suggested regular exception that works on both Windows and Unix based FTP servers. See this answer.
FTP list results are non-standard so every FTP server could potentially return something different.
You may want to try Ftp.dll FTP component it pareses most UNIX and Windows LIST command responses:
Please note that this is a commercial product I created.