function drush_tempdir

8.0.x drush_tempdir()
6.x drush_tempdir()
7.x drush_tempdir()
4.x drush_tempdir()
5.x drush_tempdir()
master drush_tempdir()

Creates a temporary directory and return its path.

Related topics

6 calls to drush_tempdir()
drush_archive_dump in commands/core/
Command callback. Generate site archive file.
drush_archive_restore in commands/core/
Command callback. Restore web site(s) from a site archive file.
drush_pm_download in commands/pm/
Command callback. Download Drupal core or any project.
make_download_bzr in commands/make/
Checks out a Bazaar repository to the specified download location.
make_download_file_unpack in commands/make/
Unpacks a file to the specified download location.

... See full list


includes/, line 471


function drush_tempdir() {
  $tmp_dir = drush_trim_path(drush_find_tmp());
  $tmp_dir .= '/' . 'drush_tmp_' . uniqid(time() . '_');


  return $tmp_dir;