Example #1
0
        /// <summary>
        ///     Lista arquivos no diretorio FTP
        /// </summary>
        private static void ListFiles()
        {
            var putter = new FtpPutter(ConfigurationManager.AppSettings["FtpFolder"],
                                       ConfigurationManager.AppSettings["FtpUser"],
                                       ConfigurationManager.AppSettings["FtpPassworld"], Plataform.XBOX);
            var remoteClanFiles = putter.List("clan.TERSP.");

            foreach (var remoteClanFile in remoteClanFiles)
            {
                putter.DeleteFile(remoteClanFile);
            }
        }
Example #2
0
        /// <summary>
        ///     Lista arquivos no diretorio FTP
        /// </summary>
        private static void ListFiles()
        {
            FtpPutter putter = new FtpPutter(ConfigurationManager.AppSettings["FtpFolder"],
                                             ConfigurationManager.AppSettings["FtpUser"],
                                             ConfigurationManager.AppSettings["FtpPassworld"]);
            IEnumerable <string> remoteClanFiles = putter.List("clan.TERSP.");

            foreach (string remoteClanFile in remoteClanFiles)
            {
                putter.DeleteFile(remoteClanFile);
            }
        }