OneDriveFile

com.github.cloudfiles.onedrive.OneDriveModel.OneDriveFile
case class OneDriveFile(item: DriveItem) extends File[String], OneDriveElement

The OneDrive-specific implementation of the ''File'' trait.

Value parameters

item

the underlying ''DriveItem''

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait File[String]
trait Element[String]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def fileData: File

Returns the ''File'' object from the underlying ''DriveItem''. This is a convenience function, which simplifies access to the ''Option''. For file objects, this information should be always present.

Returns the ''File'' object from the underlying ''DriveItem''. This is a convenience function, which simplifies access to the ''Option''. For file objects, this information should be always present.

Attributes

Returns

the ''File'' from the underlying ''DriveItem''

override def size: Long

Returns the size of the content of this file.

Returns the size of the content of this file.

Attributes

Returns

the file size

Definition Classes
File

Inherited methods

override 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

Definition Classes
OneDriveElement -> Element
Inherited from:
OneDriveElement
override 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

Definition Classes
OneDriveElement -> Element
Inherited from:
OneDriveElement
override def id: String

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

Definition Classes
OneDriveElement -> Element
Inherited from:
OneDriveElement
override 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

Definition Classes
OneDriveElement -> Element
Inherited from:
OneDriveElement
override 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

Definition Classes
OneDriveElement -> Element
Inherited from:
OneDriveElement
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product