FtpFileInfo & FtpDirectoryInfo derived from FileSystemInfo

Oct 22, 2010 at 8:19 PM


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!

Oct 25, 2010 at 8: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.