The GetInfo
method is not directly supported in FTP, because "MLST" is not supported by all servers. In that case, we apply a workaround, but it doesn't work for all servers as well.
However, you can issue the GetInfo
method in FTP like this:
var iftp = (IFtp)ftp;
var item = iftp.GetInfo("readme.txt", true);
Console.WriteLine("{0} [{1} B] ({2})", item.Name, item.Length, item.LastWriteTime);