src/php/Webforge/Common/System/Dir.php
public function getOSPath($os, $flags = 0x000000) {
    $osDS = $this->getOSDS($os, $flags);

    return $this->getOSPrefix($os,$flags).(empty($this->path) ? '' : implode($osDS, $this->path).$osDS);
  }
public function getOSPath($os, $flags = 0x000000) {
    $osDS = $this->getOSDS($os, $flags);

    return $this->getOSPrefix($os,$flags).(empty($this->path) ? '' : implode($osDS, $this->path).$osDS);
  }
public function getOSPath ( $ os , $ flags = 0x000000 ) { $ osDS = $ this -> getOSDS ( $ os , $ flags ) ; return $ this -> getOSPrefix ( $ os , $ flags ) . ( empty ( $ this -> path ) ? '' : implode ( $ osDS , $ this -> path ) . $ osDS ) ; }
Returns the path of the directory converted to specific OS

some edge cases will throw an LogicException because they cannot be converted:

D:\\windows is on unix: /D:/windows/ (like mozilla does it with file://)
/var/local/www/ is on windows??

@return string
@param const $os self::WINDOWS|self::UNIX
Returns the path of the directory converted to specific OS