Skip to contents

Creates files and file types.

Super classes

charlatan::BareProvider -> charlatan::BaseProvider -> charlatan::FileProvider -> FileProvider_en_US

Examples

(x <- FileProvider_en_US$new())
#> < FileProvider >
#> locale: en_US
x$locale
#> [1] "en_US"
x$mime_type()
#> [1] "application/xop+xml"
x$file_extension()
#> [1] "tiff"
x$file_name()
#> [1] "will.ppt"
x$file_path()
#> [1] "/stage/claim.mp3"
x$file_path(depth = 2)
#> [1] "/husband/such/tend.mp3"
x$file_path(depth = 3)
#> [1] "/own/cup/soon/big.wav"
x$file_path(depth = 6)
#> [1] "/street/run/animal/make/alone/difference/international.doc"