PHP 7.4.33
Preview: Directory.php Size: 1001 B
/var/www/multi-event-cfp.bitkit.dk/httpdocs/vendor/phpunit/php-code-coverage/src/Directory.php
<?php declare(strict_types=1);
/*
 * This file is part of phpunit/php-code-coverage.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace SebastianBergmann\CodeCoverage;

use function is_dir;
use function mkdir;
use function sprintf;

/**
 * @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
 */
final class Directory
{
    /**
     * @throws DirectoryCouldNotBeCreatedException
     */
    public static function create(string $directory): void
    {
        $success = !(!is_dir($directory) && !@mkdir($directory, 0777, true) && !is_dir($directory));

        if (!$success) {
            throw new DirectoryCouldNotBeCreatedException(
                sprintf(
                    'Directory "%s" could not be created',
                    $directory
                )
            );
        }
    }
}

Directory Contents

Dirs: 5 × Files: 8
Name Size Perms Modified Actions
Driver DIR
- drwxrwxr-x 2021-12-05 09:12:13
Edit Download
Exception DIR
- drwxrwxr-x 2021-12-05 09:12:13
Edit Download
Node DIR
- drwxrwxr-x 2021-12-05 09:12:13
Edit Download
Report DIR
- drwxrwxr-x 2021-12-05 09:12:13
Edit Download
- drwxrwxr-x 2021-12-05 09:12:13
Edit Download
18.00 KB lrw-rw-r-- 2021-12-05 09:12:13
Edit Download
1.46 KB lrw-rw-r-- 2021-12-05 09:12:13
Edit Download
1001 B lrw-rw-r-- 2021-12-05 09:12:13
Edit Download
3.10 KB lrw-rw-r-- 2021-12-05 09:12:13
Edit Download
1.38 KB lrw-rw-r-- 2021-12-05 09:12:13
Edit Download
9.48 KB lrw-rw-r-- 2021-12-05 09:12:13
Edit Download
7.23 KB lrw-rw-r-- 2021-12-05 09:12:13
Edit Download
691 B lrw-rw-r-- 2021-12-05 09:12:13
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).