Faker v0.10.0 Faker.File View Source

Functions for generating file related data

Link to this section 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

Link to this section Functions

Link to this function file_extension() View Source
file_extension() :: String.t()

Returns a random file extension

Link to this function file_extension(category) View Source
file_extension(:atom) :: String.t()

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

Returns a random file name

Link to this function file_name(category) View Source
file_name(:atom) :: String.t()

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

Returns a random mime type

Link to this function mime_type(category) View Source
mime_type(:atom) :: String.t()

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