You are here

public function ReadOnlyPhpStreamWrapperTrait::unlink in Remote Stream Wrapper 8

Support for unlink().

The file will not be deleted from the stream as this is a HTTP stream wrapper.

Parameters

string $path: A string containing the uri to the resource to delete.

Return value

bool TRUE so that file_delete() will remove db reference to file. File is not actually deleted.

See also

http://php.net/manual/streamwrapper.unlink.php

File

src/StreamWrapper/ReadOnlyPhpStreamWrapperTrait.php, line 139

Class

ReadOnlyPhpStreamWrapperTrait
Trait that contains all unimplemented methods.

Namespace

Drupal\remote_stream_wrapper\StreamWrapper

Code

public function unlink($path) {
  trigger_error('unlink() not supported for HTTP stream wrappers', E_USER_WARNING);
  return TRUE;
}