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;
  }
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;
  }
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 ; }
If BBN_DATA_PATH is defined creates a directory and removes temp files
@return $this $this
If BBN_DATA_PATH is defined creates a directory and removes temp files