Professional Documents
Culture Documents
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WinSCP;
using System.IO;
namespace WinScpTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
if (session.FileExists(remotePath))
{
RemoteDirectoryInfo directory =
session.ListDirectory(remotePath);
}
}
catch (Exception ex)
{
Console.WriteLine("Error: {0}", ex);
}
}
}
}