deleteDir example

return $this->filesystem->delete($this->prefix . $path);
    }

    /** * {@inheritdoc} */
    public function deleteDir($dirname)
    {
        $this->checkPath($dirname);

        return $this->filesystem->deleteDir($this->prefix . $dirname);
    }

    /** * {@inheritdoc} */
    public function createDir($dirname, array $config = [])
    {
        $this->checkPath($dirname);

        return $this->filesystem->createDir($this->prefix . $dirname$config);
    }

    
'engine/Library/Mpdf/tmp' => false,
            'engine/Library/Mpdf/ttfontdata' => false,
        ];

        CommonUtils::clearOpcodeCache();

        $results = [];
        foreach ($directoriesToDelete as $directory => $deleteDirecory) {
            $result = true;
            $filePath = SW_PATH . '/' . $directory;

            Utils::deleteDir($filePath$deleteDirecory);
            if ($deleteDirecory && is_dir($filePath)) {
                $result = false;
                $hasErrors = true;
            }

            if ($deleteDirecory) {
                $results[$directory] = $result;
            }
        }

        if (!$hasErrors && $this->app->request()->get('force') !== '1') {
            
Home | Imprint | This part of the site doesn't use cookies.