FileObject

interface FileObject : S3Object

Functions

Link copied to clipboard
abstract fun delete()
abstract fun delete(action: DeleteParams.() -> Unit)
abstract fun delete(params: DeleteParams)

Deletes the current object.

Link copied to clipboard
abstract fun exists(): Boolean
abstract fun exists(action: ObjectExistsParams.() -> Unit): Boolean
abstract fun exists(params: ObjectExistsParams): Boolean

Tests whether this object still exists.

Link copied to clipboard
abstract fun stat(): ObjectMeta?
abstract fun stat(action: ObjectStatParams.() -> Unit): ObjectMeta?
abstract fun stat(params: ObjectStatParams): ObjectMeta?

Fetches metadata for this object.

Properties

Link copied to clipboard
abstract val baseName: String

Returns the base name of this object, or in other words, the last segment of the path.

Link copied to clipboard
abstract val bucket: S3Bucket
Link copied to clipboard
abstract val dirName: String

Returns the 'directory' parent of this object.

Link copied to clipboard
abstract val eTag: String

Object ETag value.

Link copied to clipboard
abstract val headers: Headers
Link copied to clipboard

Object last modified/created timestamp.

Link copied to clipboard
abstract val localFile: File
Link copied to clipboard
abstract val path: String

Path/key to the object this handle represents.

Link copied to clipboard
abstract val region: String?
Link copied to clipboard
abstract val tags: ObjectTagContainer

Object tag management container.