I want to know where Drupal (or its modules/plugins) create temp files. Is it sites/default?
I'm especially talking about D6.2
|
I want to know where Drupal (or its modules/plugins) create temp files. Is it sites/default? I'm especially talking about D6.2 |
||||
|
|
|
Files that are created using the stream wrapper class defined from Drupal, and associated with a path starting with "temporary://" are created in the directory whose name is returned from file_directory_temp() which returns:
The function set the variable "file_temporary_path" to the directory it found. As far as I know, any module opens temporary files using a path starting with "temporary://" (available only in Drupal 7 and higher) or uses Drupal modules don't have the permission to write the directory containing the modules; it's quite difficult a module uses that directory to create temporary files. If you find a module that uses the directory containing the modules (or any sub-directory of that directory) report that as a bug. |
|||||||
|
|
The setting page at admin/settings/file-system contains settings for the directory used for temporary files. Some modules could choose a different directory for temporary files. There's no standard folder location. For example, the ctools module will create temporary cached files in the /sites/default/files/ctools directory. So it may vary. |
|||||
|
|
Modules can try to create temp files anywhere on the drupal site, but will only succeed where the server configuration allows it. See: http://drupal.org/node/244924 |
|||
|
|