You are here

function patterns_path_get_tmp_dir in Patterns 7.2

Same name and namespace in other branches
  1. 7 includes/path.inc \patterns_path_get_tmp_dir()

Returns the temporary files system folder

1 call to patterns_path_get_tmp_dir()
patterns_create_zip in includes/io/download.inc
Prepares a zip archive of patterns files and serves the file to download

File

includes/path.inc, line 85

Code

function patterns_path_get_tmp_dir($create = TRUE) {
  $directory =& drupal_static(__FUNCTION__, '');
  if (empty($directory)) {
    $directory = drupal_realpath('temporary://') . '/patterns-' . _update_manager_unique_identifier() . '/';
    if ($create && !file_exists($directory)) {
      mkdir($directory);
    }
  }
  return $directory;
}