original_string: public function delete($segment_one = '', $segment_two = '')
  	{
  		if ($segment_one === '')
  		{
  			$segment_one  = ($this->CI->uri->segment(1) == FALSE) ? 'default' : $this->CI->uri->segment(1);
  		}
  
  		if ($segment_two === '')
  		{
  			$segment_two = ($this->CI->uri->segment(2) == FALSE) ? 'index' : $this->CI->uri->segment(2);
  		}
  
  		$dir_path = $this->db->cachedir.$segment_one.'+'.$segment_two.'/';
  		delete_files($dir_path, TRUE);
  	}
code: public function delete($segment_one = '', $segment_two = '')
  	{
  		if ($segment_one === '')
  		{
  			$segment_one  = ($this->CI->uri->segment(1) == FALSE) ? 'default' : $this->CI->uri->segment(1);
  		}
  
  		if ($segment_two === '')
  		{
  			$segment_two = ($this->CI->uri->segment(2) == FALSE) ? 'index' : $this->CI->uri->segment(2);
  		}
  
  		$dir_path = $this->db->cachedir.$segment_one.'+'.$segment_two.'/';
  		delete_files($dir_path, TRUE);
  	}
code_tokens: public function delete ( $ segment_one = '' , $ segment_two = '' ) { if ( $ segment_one === '' ) { $ segment_one = ( $ this -> CI -> uri -> segment ( 1 ) == FALSE ) ? 'default' : $ this -> CI -> uri -> segment ( 1 ) ; } if ( $ segment_two === '' ) { $ segment_two = ( $ this -> CI -> uri -> segment ( 2 ) == FALSE ) ? 'index' : $ this -> CI -> uri -> segment ( 2 ) ; } $ dir_path = $ this -> db -> cachedir . $ segment_one . '+' . $ segment_two . '/' ; delete_files ( $ dir_path , TRUE ) ; }
docstring: Delete cache files within a particular directory
  
  @param	string	$segment_one
  @param	string	$segment_two
  @return	void
docstring_tokens: Delete cache files within a particular directory