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

Breadcrumb

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

function FileSystem::mkdirCall

Ensures we don't pass a NULL as a context resource to mkdir().

See also

self::mkdir()

1 call to FileSystem::mkdirCall()
FileSystem::mkdir in core/lib/Drupal/Core/File/FileSystem.php
Creates a directory, optionally creating missing components in the path.

File

core/lib/Drupal/Core/File/FileSystem.php, line 241

Class

FileSystem
Provides helpers to operate on files and stream wrappers.

Namespace

Drupal\Core\File

Code

protected function mkdirCall($uri, $mode, $recursive, $context) {
    if (is_null($context)) {
        return mkdir($uri, $mode, $recursive);
    }
    else {
        return mkdir($uri, $mode, $recursive, $context);
    }
}

API Navigation

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