You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\title{Retrieve 'magic' attributes from files and directories}
incant(path, magic_db = "system")
\item{path}{character vector of files to use magic on}
\item{magic_db}{either "\code{system}" (the default) to use the system
\code{magic} database or an atomic character vector with a
colon-separated list of full paths to custom \code{magic} database(s).}
a \code{tibble} / \code{data.frame} of file magic attributes.
Specifically, mime type, encoding, possible file extensions and
type description are returned as colums in the data frame along
with \code{path}.
Retrieve 'magic' attributes from files and directories
system.file("img", package="filemagic") \%>\%
list.files(full.names=TRUE) \%>\%
incant() \%>\%
See \url{}
for information on how to create your own \code{magic} database