You are here

public function ResourceStreamWrapper::rename in D7 Media 6

Support for rename().

Parameters

$fromUrl,: The url to the file to rename.

$toUrl: The new url for file.

Return value

TRUE if file was successfully renamed.

Overrides StreamWrapperInterface::rename

File

resource/ResourceStreamWrapper.inc, line 236

Class

ResourceStreamWrapper
A base class for Resource Stream Wrappers.

Code

public function rename($fromUrl, $toUrl) {
  return rename($this
    ->interpolateUrl($fromUrl), $this
    ->interpolateUrl($toUrl));
}