concrete/src/Updater/Archive.php
protected function uploadZipToTemp($file)
    {
        if (!file_exists($file)) {
            throw new Exception(t('Could not transfer to temp directory - file not found.'));
        } else {
            $dir = time();
            copy($file, $this->f->getTemporaryDirectory() . '/'. $dir . '.zip');

            return $dir;
        }
    }
protected function uploadZipToTemp($file)
    {
        if (!file_exists($file)) {
            throw new Exception(t('Could not transfer to temp directory - file not found.'));
        } else {
            $dir = time();
            copy($file, $this->f->getTemporaryDirectory() . '/'. $dir . '.zip');

            return $dir;
        }
    }
protected function uploadZipToTemp ( $ file ) { if ( ! file_exists ( $ file ) ) { throw new Exception ( t ( 'Could not transfer to temp directory - file not found.' ) ) ; } else { $ dir = time ( ) ; copy ( $ file , $ this -> f -> getTemporaryDirectory ( ) . '/' . $ dir . '.zip' ) ; return $ dir ; } }
Moves an uploaded file to the tmp directory.

@param string $file The full path of the file to copy

@return string Return the base name of the file copied to the temporary directory.
Moves an uploaded file to the tmp directory .