guess_content_type.Rd
Uses an internal database of over 1,800 file extension-to-MIME mappings to
return one or more associated types for a given input path. If no match is
found, ???
is returned.
guess_content_type(path, not_found = "???", custom_db = NULL)
path | path to file |
---|---|
not_found | MIME type to use when the content cannot be guessed by file type. |
custom_db | a single data frames each with two columns:
|
character vector
# NOT RUN { guess_content_type(system.file("extdat", "pass-through", "test.pdf", package="wand")) # }