original_string: private function _init_dir($create = false){
      if ( \defined('BBN_DATA_PATH') && $this->get_id() ){
        $this->path = BBN_DATA_PATH.'users/'.$this->get_id().'/';
        if ( !\defined('BBN_USER_PATH') ){
          define('BBN_USER_PATH', $this->path);
        }
        if ( $create ){
          file\dir::create_path(BBN_USER_PATH.'tmp');
          file\dir::delete(BBN_USER_PATH.'tmp', false);
        }
      }
      return $this;
    }
code: private function _init_dir($create = false){
      if ( \defined('BBN_DATA_PATH') && $this->get_id() ){
        $this->path = BBN_DATA_PATH.'users/'.$this->get_id().'/';
        if ( !\defined('BBN_USER_PATH') ){
          define('BBN_USER_PATH', $this->path);
        }
        if ( $create ){
          file\dir::create_path(BBN_USER_PATH.'tmp');
          file\dir::delete(BBN_USER_PATH.'tmp', false);
        }
      }
      return $this;
    }
code_tokens: private function _init_dir ( $ create = false ) { if ( \ defined ( 'BBN_DATA_PATH' ) && $ this -> get_id ( ) ) { $ this -> path = BBN_DATA_PATH . 'users/' . $ this -> get_id ( ) . '/' ; if ( ! \ defined ( 'BBN_USER_PATH' ) ) { define ( 'BBN_USER_PATH' , $ this -> path ) ; } if ( $ create ) { file \ dir :: create_path ( BBN_USER_PATH . 'tmp' ) ; file \ dir :: delete ( BBN_USER_PATH . 'tmp' , false ) ; } } return $ this ; }
docstring: If BBN_DATA_PATH is defined creates a directory and removes temp files
  @return $this $this
docstring_tokens: If BBN_DATA_PATH is defined creates a directory and removes temp files