My code, which has been working right on another computer fails at FullPath
and FileName
points. The error is:
'object' does not contain a definition for 'FullPath' and no extension method 'FullPath' accepting a first argument of type 'object' could be found.
The code is :
var sftp = new Tamir.SharpSsh.Sftp(direction);
sftp.Connect();
foreach( var fileName in sftp.GetFileList(Properties.Settings.Default.DirectorioFtp) )
{
byte[] fichero;
sftp.Get(fileName.FullPath, out fichero);
var enc = new UTF7Encoding();
string str = enc.GetString(fichero);
ProcessFile(fileName.Filename, str);
}
I have loaded Tamir.SharpSSh
succesfully, but I don't know if another library is needed or how to make filename of the necessary type.