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

10 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_config_edit in commands/core/
Edit command callback.
drush_config_import in commands/core/
Command callback. Import from specified config directory (defaults to sync).
make_download_bzr in commands/make/
Checks out a Bazaar repository to the specified download location.

... See full list


includes/, line 513
Filesystem utilities.


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


  return $tmp_dir;