There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
FTPfileInfo constructor support for no size
the constructer of FTPfileInfo is expecting size to be non-blank, but for a directory it is blank hence there is an exception.
does anyone have an elegant fix to this problem? (maybe extend FileInfo to support both files and directories?)
this fixed my problem:
In the constructor for FTPFileInfo, i made the below change.
If ((m.Groups("size").Value.Trim.Length) = 0) Then
_size = 0
_size = CLng(m.Groups("size").Value)