Exemple #1
0
        public MainWindow()
        {
            InitializeComponent();

            JumdFTPService jumdFTPServiceObj      = new JumdFTPService("ftp://localhost", "PUBG", "1", "G:\\ftp_local");
            List <Tuple <string, bool> > ftpItems = jumdFTPServiceObj.GetListofItemsInFtpFolder("ftp://localhost");

            foreach (string eachItem in ftpItems.Select(x => x.Item1))
            {
                lvFTPList.Items.Add(eachItem);
            }

            //jumdFTPServiceObj.EstablishFTPConnection();
        }
Exemple #2
0
        static void Main()
        {
            JumdFTPService jumdFTPServiceObj = new JumdFTPService("ftp://localhost", "PUBG", "1", "G:\\ftp_local");


            List <Tuple <string, bool> > itemListFTP = jumdFTPServiceObj.GetListofItemsInFtpFolder("ftp://localhost");

            foreach (Tuple <string, bool> eachItem in itemListFTP)
            {
                Console.WriteLine(eachItem);
            }


            //jumdFTPServiceObj.PullItemsToLocal(itemListFTP, "G:\\ftp_local");

            List <Tuple <string, bool> > itemListLocal = jumdFTPServiceObj.GetListofItemsInLocalFolder("G:\\ftp_local");

            //jumdFTPServiceObj.PushItemsToServer(itemListLocal, "ftp://localhost");

            //jumdFTPServiceObj.CreateFolderInFTP("abc");
            //jumdFTPServiceObj.CreateFileFolder("abc.txt", true);

            jumdFTPServiceObj.DeleteItemsInFTP(itemListFTP);
        }