original_string: protected function set_temp_file_path() {
          global $USER, $CFG;
          make_temp_directory('csvimport/' . $USER->id);
          $path = $CFG->tempdir . '/csvimport/' . $USER->id. '/' . $this->filename;
          // Check to see if the file exists, if so delete it.
          if (file_exists($path)) {
              unlink($path);
          }
          $this->path = $path;
      }
code: protected function set_temp_file_path() {
          global $USER, $CFG;
          make_temp_directory('csvimport/' . $USER->id);
          $path = $CFG->tempdir . '/csvimport/' . $USER->id. '/' . $this->filename;
          // Check to see if the file exists, if so delete it.
          if (file_exists($path)) {
              unlink($path);
          }
          $this->path = $path;
      }
code_tokens: protected function set_temp_file_path ( ) { global $ USER , $ CFG ; make_temp_directory ( 'csvimport/' . $ USER -> id ) ; $ path = $ CFG -> tempdir . '/csvimport/' . $ USER -> id . '/' . $ this -> filename ; // Check to see if the file exists, if so delete it. if ( file_exists ( $ path ) ) { unlink ( $ path ) ; } $ this -> path = $ path ; }
docstring: Set the file path to the temporary file.
docstring_tokens: Set the file path to the temporary file .