Delete a file. This method is called in response to unlink().

Access

public

Parameters

Parameter

Type

Required

Description

$path

string

Required

The file URL which should be deleted.

Returns

Type

Description

boolean

Returns true on success or false on failure.

Source

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

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

    $response = $this->client($protocol)->delete_object($bucket, $object_name);

    return $response->isOK();
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback