src/Viserio/Component/Filesystem/FilesystemAdapter.php
public function cleanDirectory(string $dirname): bool
    {
        if (! $this->isDirectory($dirname)) {
            return false;
        }

        $directories = $this->allDirectories($dirname);

        foreach ($directories as $directoryName) {
            @\rmdir($this->getTransformedPath($directoryName));
        }

        return true;
    }
public function cleanDirectory(string $dirname): bool
    {
        if (! $this->isDirectory($dirname)) {
            return false;
        }

        $directories = $this->allDirectories($dirname);

        foreach ($directories as $directoryName) {
            @\rmdir($this->getTransformedPath($directoryName));
        }

        return true;
    }
{@inheritdoc}