FileSystem::mkdirCall

protected FileSystem::mkdirCall($uri, $mode, $recursive, $context)

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

See also

self::mkdir()

File

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

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);
  }
}
doc_Drupal
2016-10-29 09:13:50
Comments
Leave a Comment

Please login to continue.