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] "image/tiff"
x$file_extension()
#> [1] "jpg"
x$file_name()
#> [1] "mother.json"
x$file_path()
#> [1] "/camera/second.mp4"
x$file_path(depth = 2)
#> [1] "/allow/action/environment.mp3"
x$file_path(depth = 3)
#> [1] "/gun/close/better/person.jpeg"
x$file_path(depth = 6)
#> [1] "/participant/once/left/eight/like/national/after.mp4"