public function getPath($flags = 0x000000) {
    $ds = $this->getDS();

    $trail = $flags & self::WITHOUT_TRAILINGSLASH ? '' : $ds;

    return $this->prefix.(empty($this->path) ? '' : implode($ds, $this->path).$trail);
  }