コード例 #1
0
        private void temp_getListing(object sender, EventArgs e)
        {
            ftpClient client = new ftpClient(@"localhost:21", "asdf", "");

            //client.directoryListSimple(@"C:\fiona");

            string[] simpleDirectoryListing = client.directoryListDetailed(@"C:\fiona");
            for (int i = 0; i < simpleDirectoryListing.Length; i++)
            {
                Console.WriteLine(simpleDirectoryListing[i]);
            }
        }
コード例 #2
0
        private void ButtonDownloadShow_Click(object sender, EventArgs e)
        {
            ftpClient client = new ftpClient(@"localhost:21", "asdf", "");

            client.download("Transcript.pdf", @"C:\fiona\NewFolder\Transcript.pdf");
        }