Пример #1
0
        static void Main(string[] args)
        {
            var conFtp = new ConnectionToFtp(_login, _password, _ftpServer, _path, _fileName);
            var response = conFtp.GetResponse();
            if (response != null)
            {
                Console.WriteLine(response.StatusCode);
                Console.WriteLine(response.StatusDescription);
                Console.WriteLine(response.WelcomeMessage);
                Console.ReadLine();
                response.Dispose();
            }

            conFtp.Download(_saveToPath, _fileName);
        }
Пример #2
0
        static void Main(string[] args)
        {
            var conFtp   = new ConnectionToFtp(_login, _password, _ftpServer, _path, _fileName);
            var response = conFtp.GetResponse();

            if (response != null)
            {
                Console.WriteLine(response.StatusCode);
                Console.WriteLine(response.StatusDescription);
                Console.WriteLine(response.WelcomeMessage);
                Console.ReadLine();
                response.Dispose();
            }

            conFtp.Download(_saveToPath, _fileName);
        }