function FileSystem::mkdirCall
Same name in other branches
- 9 core/lib/Drupal/Core/File/FileSystem.php \Drupal\Core\File\FileSystem::mkdirCall()
- 8.9.x core/lib/Drupal/Core/File/FileSystem.php \Drupal\Core\File\FileSystem::mkdirCall()
- 11.x core/lib/Drupal/Core/File/FileSystem.php \Drupal\Core\File\FileSystem::mkdirCall()
Ensures we don't pass a NULL as a context resource to mkdir().
See also
1 call to FileSystem::mkdirCall()
- FileSystem::mkdir in core/
lib/ Drupal/ Core/ File/ FileSystem.php
File
-
core/
lib/ Drupal/ Core/ File/ FileSystem.php, line 241
Class
- FileSystem
- Provides helpers to operate on files and stream wrappers.
Namespace
Drupal\Core\FileCode
protected function mkdirCall($uri, $mode, $recursive, $context) {
if (is_null($context)) {
return mkdir($uri, $mode, $recursive);
}
else {
return mkdir($uri, $mode, $recursive, $context);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.