A contents model.


  • IModel


chunk?: number

The chunk of the file upload.

content: any

The optional file content.

created: string

File creation timestamp.

format: FileFormat

The format of the file content.


Only relevant for type: 'file'

hash?: string

The hexdigest hash string of content, if requested (otherwise null). It cannot be null if hash_algorithm is defined.

hash_algorithm?: string

The algorithm used to compute hash value. It cannot be null if hash is defined.

indices?: readonly number[]

The indices of the matched characters in the name.

last_modified: string

Last modified timestamp.

mimetype: string

Specify the mime-type of file contents.


Only non-null when content is present and type is "file".

name: string

Name of the contents file.


Equivalent to the last part of the path field.

path: string

The full file path.


It will not start with /, and it will be /-delimited.

serverPath?: string

The path as returned by the server contents API.


Differently to path it does not include IDrive API prefix.

size?: number

The size of then file in bytes.

type: string

The type of file.

writable: boolean

Whether the requester has permission to edit the file.

Generated using TypeDoc