public function vfsStreamDirectory::rename in Zircon Profile 8
Same name and namespace in other branches
- 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
Overrides vfsStreamAbstractContent::rename
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamDirectory.php, line 91
Class
- vfsStreamDirectory
- Directory container.
Namespace
org\bovigo\vfsCode
public function rename($newName) {
if (strstr($newName, '/') !== false) {
throw new vfsStreamException('Directory name can not contain /.');
}
parent::rename($newName);
}