This project is read-only.

FtpFileInfo & FtpDirectoryInfo derived from FileSystemInfo

Oct 22, 2010 at 9:19 PM

Scott,

Is there any reason FtpFileInfo & FtpDirectoryInfo is derived from FileSystemInfo?  Is there any functionality FileSystemInfo is providing thats not overridden/hidden in the derived classes?  I was trying to use the FullName property and that throws an error where FullPath isn't an absolute path (not like thats possible for this case).  I'm reworking it to not not derive from FileSystemInfo and make the FullName and FullPath include the full depth of the File or Directory.  I'll submit a patch if thats acceptable to everyone.

Thanks for the great library!

Coordinator
Oct 25, 2010 at 9:22 PM

The idea was that since the WINAPI function FindFirstFile and FtpFindFirstFile return the same WIN32_FIND_DATA struct, that both System.IO.DirectoryInfo.GetFiles() and FtpLib.FtpDirectoryInfo.GetFiles() should return similar types.