% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zip.R
\name{zip_list}
\alias{zip_list}
\title{List Files in a 'zip' Archive}
\usage{
zip_list(zipfile, encoding = NULL)
}
\arguments{
\item{zipfile}{Path to an existing ZIP file.}

\item{encoding}{Encoding to use for entry filenames. ZIP files signal
UTF-8 filenames via a flag in each entry; those are always decoded as
UTF-8 regardless of \code{encoding}. For entries without that flag, \code{encoding}
is used; \code{NULL} (the default) falls back to IBM CP437, which is what the
ZIP specification prescribes for legacy entries. The value is passed
to \code{\link[=iconv]{iconv()}}.}
}
\value{
A data frame with columns: \code{filename}, \code{compressed_size},
\code{uncompressed_size}, \code{timestamp}, \code{permissions}, \code{crc32}, \code{offset},
\code{type} and \code{encryption}. \code{type} is one of \code{file}, \code{block_device},
\code{character_device}, \code{directory}, \code{FIFO}, \code{symlink} or \code{socket}.
\code{encryption} is one of \code{none}, \code{aes128}, \code{aes192}, \code{aes256},
\code{zipcrypto}, or \code{NA} if encrypted but the scheme cannot be determined.
}
\description{
List Files in a 'zip' Archive
}
\details{
Note that \code{crc32} is formatted using \code{as.hexmode()}. \code{offset} refers
to the start of the local zip header for each entry. Following the approach
of \code{seek()} it is stored as a \code{numeric} rather than an \code{integer} vector and
can therefore represent values up to \code{2^53-1} (9 PB).
}
\seealso{
Other zip/unzip functions:
\code{\link[=unzip]{unzip()}}
}
\concept{zip/unzip functions}
