Example #1
0
        private List <string> ListarDetalhesArquivosFTP()
        {
            List <string> listaArquivos = new List <string>();

            FTPSimple ftp = new FTPSimple(this.servidorFTP, this.usuarioFTP, this.senhaFTP);

            listaArquivos = ftp.ListarDiretorioDetalhado(this.diretorioFTPArquivos).ToList <string>();

            return(listaArquivos);
        }
        private IList <string> GetListaDetalhesArquivos()
        {
            IList <string> listaArquivos = new List <string>();

            try
            {
                FTPSimple ftp = new FTPSimple(this.txtIPServidor.Text.Trim(), this.txtUsuario.Text.Trim(), this.txtSenha.Text.Trim());

                listaArquivos = ftp.ListarDiretorioDetalhado(this.txtDiretorioFTP.Text.Trim()).ToList <string>();

                return(listaArquivos);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }