Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Filesystem.php

class Filesystem

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Util/Filesystem.php \PHPUnit\Util\Filesystem
  2. 11.1.x vendor/php-tuf/composer-stager/src/Internal/Filesystem/Service/Filesystem.php \PhpTuf\ComposerStager\Internal\Filesystem\Service\Filesystem
  3. 11.1.x vendor/composer/composer/src/Composer/Util/Filesystem.php \Composer\Util\Filesystem
  4. 11.1.x vendor/symfony/filesystem/Filesystem.php \Symfony\Component\Filesystem\Filesystem
  5. 11.1.x core/lib/Drupal/Core/File/FileSystem.php \Drupal\Core\File\FileSystem
  6. 11.1.x core/lib/Drupal/Component/FileSystem/FileSystem.php \Drupal\Component\FileSystem\FileSystem

@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

Hierarchy

  • class \SebastianBergmann\CodeCoverage\Util\Filesystem

Expanded class hierarchy of Filesystem

7 files declare their use of Filesystem
CachingFileAnalyser.php in vendor/phpunit/php-code-coverage/src/StaticAnalysis/CachingFileAnalyser.php
Clover.php in vendor/phpunit/php-code-coverage/src/Report/Clover.php
Cobertura.php in vendor/phpunit/php-code-coverage/src/Report/Cobertura.php
Crap4j.php in vendor/phpunit/php-code-coverage/src/Report/Crap4j.php
Facade.php in vendor/phpunit/php-code-coverage/src/Report/Html/Facade.php

... See full list

2 string references to 'Filesystem'
RepositoryFactory::configFromString in vendor/composer/composer/src/Composer/Repository/RepositoryFactory.php
RepositoryFactory::createRepos in vendor/composer/composer/src/Composer/Repository/RepositoryFactory.php

File

vendor/phpunit/php-code-coverage/src/Util/Filesystem.php, line 19

Namespace

SebastianBergmann\CodeCoverage\Util
View source
final class Filesystem {
    
    /**
     * @throws DirectoryCouldNotBeCreatedException
     */
    public static function createDirectory(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));
        }
    }

}

Members

Title Sort descending Modifiers Object type Summary
Filesystem::createDirectory public static function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal