stat

abstract fun stat(): ObjectMeta?

Fetches metadata for this object.

If this object no longer exists, null will be returned.

Return

An ObjectMeta instance containing this object's metadata if this object exists, otherwise null.

Throws

If the bucket in which this object resided no longer exists.

If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.


abstract fun stat(action: ObjectStatParams.() -> Unit): ObjectMeta?

Fetches metadata for this object.

If this object no longer exists, null will be returned.

Return

An ObjectMeta instance containing this object's metadata if this object exists, otherwise null.

Parameters

action

Action used to configure the backing S3 operation.

Throws

If the bucket in which this object resided no longer exists.

If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.


abstract fun stat(params: ObjectStatParams): ObjectMeta?

Fetches metadata for this object.

If this object no longer exists, null will be returned.

Return

An ObjectMeta instance containing this object's metadata if this object exists, otherwise null.

Parameters

params

Parameters for the backing S3 operation.

Throws

If the bucket in which this object resided no longer exists.

If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.