Is there any documentation or help file for using this library?
// The simple use case Stream Download(string host, string folder, string file, string user, string password) { FTPConnection c; Stream s;
s = new MemoryStream(); c = new FTPConnection(); try { c.Open(host, user, password); if (folder.Length > 0) { c.SetCurrentDirectory(folder); } c.GetStream(file, s, FTPFileTransferType.Binary); c.Close(); s.Seek(0, SeekOrigin.Begin); } catch (Exception e) { }
return s; }
Log in to post a comment.
// The simple use case
Stream Download(string host, string folder, string file, string user, string password)
{
FTPConnection c;
Stream s;
s = new MemoryStream();
c = new FTPConnection();
try
{
c.Open(host, user, password);
if (folder.Length > 0)
{
c.SetCurrentDirectory(folder);
}
c.GetStream(file, s, FTPFileTransferType.Binary);
c.Close();
s.Seek(0, SeekOrigin.Begin);
}
catch (Exception e)
{
}
return s;
}