1
Vote

GetDirectoryList

description

Hi,

In DirectoryListParser class for the method
public static IList<DirectoryListItem> GetDirectoryList(string datastring)
When I try to get the directory list from my ftp server, it returns the files info with a return char '\r' on the first line which cause the parsing to fail.

This is my content unparsed:
"\r"
"-rwxr-x--- 1 system 1 1475072 Aug 21 23:34 MYFILE.TXT\r"
""

I fix it by modifying the line 26:
_directoryListStyle != EDirectoryListingStyle.Unknown && s != ""
_directoryListStyle != EDirectoryListingStyle.Unknown && s != "" && s != "\r"
Can you do something about it?

Thanks,

comments