Item

public struct Item
  • Tag: StorageListResultItem
  • The path of the object in storage.

    • Tag: StorageListResultItem.path

    Declaration

    Swift

    public let path: String
  • key

    The unique identifier of the object in storage.

    • Tag: StorageListResultItem.key

    Declaration

    Swift

    @available(*, deprecated, message: "Use `path` instead.")
    public let key: String
  • Size in bytes of the object

    • Tag: StorageListResultItem.size

    Declaration

    Swift

    public let size: Int?
  • The date the Object was Last Modified

    • Tag: StorageListResultItem.lastModified

    Declaration

    Swift

    public let lastModified: Date?
  • The entity tag is an MD5 hash of the object. ETag reflects only changes to the contents of an object, not its metadata.

    • Tag: StorageListResultItem.eTag

    Declaration

    Swift

    public let eTag: String?
  • Additional results specific to the plugin.

    • Tag: StorageListResultItem.pluginResults

    Declaration

    Swift

    public let pluginResults: Any?
  • This is meant to be called by plugins implementing StorageCategoryBehavior.list.

    • Tag: StorageListResultItem.init

    Declaration

    Swift

    @available(*, deprecated, message: "Use init(path:size:lastModifiedDate:eTag:pluginResults﹚")
    public init(
        key: String,
        size: Int? = nil,
        eTag: String? = nil,
        lastModified: Date? = nil,
        pluginResults: Any? = nil
    )
  • Declaration

    Swift

    public init(
        path: String,
        size: Int? = nil,
        eTag: String? = nil,
        lastModified: Date? = nil,
        pluginResults: Any? = nil
    )