Returns the directory where update archive files should be cached.
$create: (optional) Whether to attempt to create the directory if it does not already exist. Defaults to TRUE.
The full path to the temporary directory where update file archives should be cached.
function _update_manager_cache_directory($create = TRUE) {
$directory =& drupal_static(__FUNCTION__, '');
if (empty($directory)) {
$directory = 'temporary://update-cache-' . _update_manager_unique_identifier();
if ($create && !file_exists($directory)) {
mkdir($directory);
}
}
return $directory;
}