Element

com.github.cloudfiles.core.Model.Element
trait Element[ID]

A trait representing an element (a file or a folder) stored on a server.

This is a base trait defining properties common to all elements that can be interacted with.

Type parameters

ID

the type of the ID of an element

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait File[ID]
trait Folder[ID]

Members list

Value members

Abstract methods

def createdAt: Instant

Returns the date when this element has been created.

Returns the date when this element has been created.

Attributes

Returns

the creation date of this element

def description: Option[String]

Returns the description of this element. Not all file systems support such a description, and users typically do not provide one; therefore, this is an ''Option'' and can be ''None''.

Returns the description of this element. Not all file systems support such a description, and users typically do not provide one; therefore, this is an ''Option'' and can be ''None''.

Attributes

Returns

the optional description of this element

def id: ID

Returns the ID of this element. Via this ID the element can be resolved, e.g. to obtain its metadata or download it (if possible).

Returns the ID of this element. Via this ID the element can be resolved, e.g. to obtain its metadata or download it (if possible).

Attributes

Returns

the ID of this element

def lastModifiedAt: Instant

Returns the date of the last modification of this element.

Returns the date of the last modification of this element.

Attributes

Returns

the date of last modification

def name: String

Returns the name of this element. The name is typically displayed to the end user to identify this element.

Returns the name of this element. The name is typically displayed to the end user to identify this element.

Attributes

Returns

the name of this element