function _drupal_mkdir_call

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

See also

drupal_mkdir()

Related topics

1 call to _drupal_mkdir_call()
drupal_mkdir in includes/file.inc
Creates a directory, optionally creating missing components in the path to the directory.

File

includes/file.inc, line 2588

Code

function _drupal_mkdir_call($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.