public function DrupalLocalStreamWrapper::rename
public DrupalLocalStreamWrapper::rename($from_uri, $to_uri)
Support for rename().
Parameters
$from_uri,: The URI to the file to rename.
$to_uri: The new URI for file.
Return value
TRUE if file was successfully renamed.
Overrides StreamWrapperInterface::rename
See also
http://php.net/manual/streamwrapper.rename.php
File
- includes/stream_wrappers.inc, line 581
- Drupal stream wrapper interface.
Class
- DrupalLocalStreamWrapper
- Drupal stream wrapper base class for local files.
Code
public function rename($from_uri, $to_uri) { return rename($this->getLocalPath($from_uri), $this->getLocalPath($to_uri)); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!stream_wrappers.inc/function/DrupalLocalStreamWrapper::rename/7.x