guess_content_type: Guess MIME type from filename (extension)

Description Usage Arguments Details Value Examples

Description

Uses an internal database of over 1,500 file extension-to-MIME mappings to return one or more associated types for a given input path. If no match is found, ??? is returned.

Usage

1

Arguments

path

path to file

Details

Incorporates standard IANA MIME extension mappings and those from servoy-client and stevenwdv's allMimeTypes.json.

Value

character vector

Examples

1
guess_content_type(system.file("extdat", "test.pdf", package="wand"))

wand documentation built on July 9, 2019, 1:02 a.m.