Pagekit\Installer\SelfUpdater::cleanup PHP Method

cleanup() protected method

Scans directory for old files.
protected cleanup ( $fileList, $path ) : array
$fileList
$path
return array
    protected function cleanup($fileList, $path)
    {
        $errorList = [];
        foreach ($this->cleanFolder as $dir) {
            array_merge($errorList, $this->doCleanup($fileList, $dir, $path));
        }
        return $errorList;
    }