Deployment\Deployer::renamePaths PHP Method

renamePaths() private method

Renames uploaded files.
private renamePaths ( array $paths ) : void
$paths array
return void
    private function renamePaths(array $paths)
    {
        $files = array_values(array_filter($paths, function ($path) {
            return substr($path, -1) !== '/';
        }));
        foreach ($files as $num => $file) {
            $this->writeProgress($num + 1, count($files), "Renaming {$file}", NULL, 'olive');
            $remoteFile = $this->remoteDir . $file;
            $this->server->renameFile($remoteFile . self::TEMPORARY_SUFFIX, $remoteFile);
        }
    }