retrieve

@Contract(pure = true)
open fun retrieve(file: FileObject): FileObject

Retrieves the file associated with the given file. This method will return a new instance of the file, and will not modify the given instance.

This method is practically useless, as files cannot be modified.

Return

The new instance of the retrieved file

Parameters

file

The file to retrieve


@Contract(pure = true)
abstract fun retrieve(id: String): FileObject

Retrieve the file with the given id.

Return

The file with the given id

Parameters

id

The id of the file to retrieve