File

com.github.cloudfiles.gdrive.GoogleDriveJsonProtocol.File
case class File(id: String, name: String, mimeType: String, parents: List[String], createdTime: Instant, modifiedTime: Instant, description: Option[String], size: Option[String], properties: Option[Map[String, String]], appProperties: Option[Map[String, String]], trashed: Boolean, trashedTime: Option[Instant])

A data class corresponding to the GoogleDrive ''File'' resource.

This resource is used to represent files and folders stored on a GoogleDrive. The ''FileSystem'' implementation for GoogleDrive mainly interacts with this resource.

Refer to https://developers.google.com/drive/api/v3/reference/files.

Value parameters

appProperties

optional application-specific properties

createdTime

the creation time

description

the optional description for this file

id

the ID of the file

mimeType

the mime type

modifiedTime

the time of the last modification

name

the name of the file (or folder)

parents

a list with the parents of this file

properties

optional properties assigned to this file

size

the size of the file

trashed

flag whether the file is in trash

trashedTime

optional time when the file was moved to trash

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def fileAppProperties: Map[String, String]

Returns application-specific properties for this file. This function returns an empty map if no properties are defined.

Returns application-specific properties for this file. This function returns an empty map if no properties are defined.

Attributes

Returns

a map with application-specific properties of this file

def fileProperties: Map[String, String]

Returns global properties for this file. This function returns an empty map if no properties are defined.

Returns global properties for this file. This function returns an empty map if no properties are defined.

Attributes

Returns

a map with the globally visible properties of this file

def fileSize: Long

Returns the size of this file as a ''Long'' value. The string-based size from the original data is converted. In case of a folder, no size is present; then result is 0.

Returns the size of this file as a ''Long'' value. The string-based size from the original data is converted. In case of a folder, no size is present; then result is 0.

Attributes

Returns

the numeric size of this file

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product