You are here

public function vfsStreamDirectory::rename in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamDirectory.php \org\bovigo\vfs\vfsStreamDirectory::rename()

renames the content

Parameters

string $newName:

Throws

vfsStreamException

Overrides vfsStreamAbstractContent::rename

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamDirectory.php, line 91

Class

vfsStreamDirectory
Directory container.

Namespace

org\bovigo\vfs

Code

public function rename($newName) {
  if (strstr($newName, '/') !== false) {
    throw new vfsStreamException('Directory name can not contain /.');
  }
  parent::rename($newName);
}