コード例 #1
0
        public int TestClientCreation()
        {
            FtpServer server = new FtpServer("192.168.1.1");
            FtpUser user = new FtpUser("robson", "4019551", server);

            return user.ToString() == "Ftp user credentials\nlogin: robson\npassword: 4019551\nserver address: 192.168.1.1" ? 0 : 1;
        }
コード例 #2
0
        public void TestFileDelete()
        {
            //  83.10.110.250
            FtpServer server = new FtpServer("91.219.122.70", "FTP/folder4/filder4_2/ET - Prazan stan.mp3");
            FtpUser user = new FtpUser("robson081192", "pck5LT099r", server);

            user.DeleteFile();
        }
コード例 #3
0
        public void TestDirectoryDelete()
        {
            //  83.10.110.250
            FtpServer server = new FtpServer("91.219.122.70", "FTP/folder4/filder4_2");
            FtpUser user = new FtpUser("robson081192", "pck5LT099r", server);

            user.DeleteDirectory();
        }
コード例 #4
0
        public void TestFileDownload()
        {
            FtpServer server = new FtpServer("91.219.122.70", "/FTP/ET - Prazan stan.mp3");
            FtpUser user = new FtpUser("robson081192", "pck5LT099r", server);

            CommonFile file = new CommonFile(@"C:\Users\Robson\Desktop\Test_FTP_dll\ET - Prazan stan.mp3");
            user.DownloadFile(file);

            file.SafeContentOnDrive();
        }
コード例 #5
0
        public void TestDirectoryCreationLocal()
        {
            //  83.10.110.250
            FtpServer server = new FtpServer("192.168.1.1", "/FTP/ET - Prazan stan.mp3");
            FtpUser user = new FtpUser("robson", "4019551", server);

            user.GoToOrCreatePath("FTP/folder4/filder4_2/");
            CommonFile file = new CommonFile(@"C:\Users\Robson\Desktop\Test_FTP_dll\ET - Prazan stan.mp3");
            user.UploadFile(file);
        }
コード例 #6
0
        public void TestDirectoryCreation()
        {
            //  83.10.110.250
            FtpServer server = new FtpServer("91.219.122.70", "/FTP/ET - Prazan stan.mp3");
            FtpUser user = new FtpUser("robson081192", "pck5LT099r", server);

            user.GoToOrCreatePath("FTP/folder4/filder4_2/");
            CommonFile file = new CommonFile(@"C:\Users\Robson\Desktop\Test_FTP_dll\ET - Prazan stan.mp3");
            user.UploadFile(file);
        }
コード例 #7
0
        public int TestServerCreation()
        {
            FtpServer server = new FtpServer("192.168.1.1");

            return server.ToString() == "This file server uses the FTP protocol, and it's Url is: 192.168.1.1" ? 0 : 1;
        }
コード例 #8
0
        public void TestFileUpload()
        {
            //  83.10.110.250
            FtpServer server = new FtpServer("91.219.122.70", "/FTP/ET - Prazan stan.mp3");
            FtpUser user = new FtpUser("robson081192", "pck5LT099r", server);

            CommonFile file = new CommonFile(@"C:\Users\Robson\Desktop\Test_FTP_dll\ET - Prazan stan.mp3");
            user.UploadFile(file);
        }