file_directory_os_temp

file_directory_os_temp()

Discovers a writable system-appropriate temporary directory.

Return value

mixed A string containing the path to the temporary directory.

Deprecated

in Drupal 8.3.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Component\FileSystem\FileSystem::getOsTemporaryDirectory().

Related topics

File interface
Common file handling functions.

File

core/includes/file.inc, line 1222
API for handling file uploads and server file management.

Code

function file_directory_os_temp() {
  return ComponentFileSystem::getOsTemporaryDirectory();
}
doc_Drupal
2016-10-29 09:14:09
Comments
Leave a Comment

Please login to continue.