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); } }
Please login to continue.