<?php rename(string $from, string $to, ?resource $context = null): bool
<?php $this->resolveDirectoryVisibility($config->get(Config::OPTION_DIRECTORY_VISIBILITY)) ); if ( ! @rename($sourcePath, $destinationPath)) { throw UnableToMoveFile::fromLocationTo($sourcePath, $destinationPath); } }