contains

abstract operator fun contains(path: String): Boolean

Tests whether this object container contains an object at the given path.

Return

true if this container has an object at that path, otherwise false.

Parameters

path

Path to the object to test for.

Throws

If this bucket or the bucket in which this object container resides 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 contains(path: String, action: ObjectExistsParams.() -> Unit): Boolean

Tests whether this object container contains an object at the configured target path.

Return

true if this container has an object at that path, otherwise false.

Parameters

action

Action used to configure the backing S3 operation.

Throws

If this bucket or the bucket in which this object container resides 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 contains(path: String, params: ObjectExistsParams): Boolean

Tests whether this object container contains an object at the configured target path.

Return

true if this container has an object at that path, otherwise false.

Parameters

params

Parameters for the backing S3 operation.

Throws

If this bucket or the bucket in which this object container resides no longer exists.

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