Пример #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 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);
        }