rmdir ( $path, $context )

This method is called in response to rmdir().

Access

public

Parameters

Parameter

Type

Required

Description

$path

string

Required

The bucket name to create.

$context

boolean

Required

Ignored.

Returns

Type

Description

boolean

Whether the bucket was deleted successfully or not.

Source

Method defined in extensions/s3streamwrapper.class.php | Toggle source view (9 lines) | View on GitHub

public function rmdir($path, $context)
{
    $this->path = $path;
    list($protocol, $bucket, $object_name) = $this->parse_path($path);

    $response = $this->client($protocol)->delete_bucket($bucket);

    return $response->isOK();
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback