Faker v0.8.0 Faker.File

Functions for generating file related data

Summary

Functions

Returns a random file extension

Returns a random file extension from the category given Available categories: :audio, :image, :text, :video, :office

Returns a random file name

Returns a random file name from the category given Available categories: :audio, :image, :text, :video, :office

Returns a random mime type

Returns a random mime type from the category given Available categories: :application, :audio, :image, :message, :model, :multipart, :text, :video

Functions

file_extension()
file_extension() :: String.t

Returns a random file extension

file_extension(category)
file_extension(:atom) :: String.t

Returns a random file extension from the category given Available categories: :audio, :image, :text, :video, :office

file_name()
file_name() :: String.t

Returns a random file name

file_name(category)
file_name(:atom) :: String.t

Returns a random file name from the category given Available categories: :audio, :image, :text, :video, :office

mime_type()
mime_type() :: String.t

Returns a random mime type

mime_type(category)
mime_type(:atom) :: String.t

Returns a random mime type from the category given Available categories: :application, :audio, :image, :message, :model, :multipart, :text, :video