% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasus_catalog.R
\name{datasus_ftp_ls}
\alias{datasus_ftp_ls}
\title{List files and directories from the DATASUS FTP}
\usage{
datasus_ftp_ls(path, timeout = 120, ftp_use_epsv = FALSE, verbose = TRUE)
}
\arguments{
\item{path}{FTP path or full URL. Relative paths are prefixed with the
DATASUS public FTP root.}

\item{timeout}{Timeout in seconds (default 120).}

\item{ftp_use_epsv}{Logical. Passed to curl (default \code{FALSE}).}

\item{verbose}{Logical. Emit progress messages (default \code{TRUE}).}
}
\value{
A tibble with columns \code{ftp_url} and \code{entry}.
}
\description{
Fetches a raw directory listing from a DATASUS FTP path.
}
\examples{
\donttest{
tryCatch(
  datasus_ftp_ls("SIHSUS/200801_/Dados/", verbose = FALSE),
  error = function(e) message("FTP unavailable: ", conditionMessage(e))
)
}
}
