public static function removeDir(string $path): void
    {
        self::walkDir(
            $path,
            function (SplFileInfo $file): void
            {
                $path = $file->getRealPath();
                $file->isDir() ? rmdir($path) : unlink($path);
            }
        );
        rmdir($path);
    }