Bunnyx.Storage.Object (Bunnyx v0.4.0)

Copy Markdown View Source

File or directory entry returned by Bunnyx.Storage.list/2.

The :is_directory field distinguishes folders from files. For files, :length is the size in bytes and :content_type is the MIME type.

Summary

Types

t()

@type t() :: %Bunnyx.Storage.Object{
  checksum: String.t() | nil,
  content_type: String.t() | nil,
  date_created: String.t() | nil,
  guid: String.t() | nil,
  is_directory: boolean() | nil,
  last_changed: String.t() | nil,
  length: integer() | nil,
  object_name: String.t() | nil,
  path: String.t() | nil,
  storage_zone_name: String.t() | nil
}