Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. System.php

function System::_removeTmpFiles

Remove temporary files created my mkTemp. This function is executed at script shutdown time

File

vendor/pear/pear-core-minimal/src/System.php, line 445

Class

System
System offers cross platform compatible system functions

Code

public static function _removeTmpFiles() {
    if (count($GLOBALS['_System_temp_files'])) {
        $delete = $GLOBALS['_System_temp_files'];
        array_unshift($delete, '-r');
        System::rm($delete);
        $GLOBALS['_System_temp_files'] = array();
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal