protected function unifyPath($path, $slash = DIRECTORY_SEPARATOR)
    {
        return preg_replace('/\\'. $slash .'+/', $slash, str_replace(array('/', "\\"), $slash, $path));
    }
protected function unifyPath($path, $slash = DIRECTORY_SEPARATOR)
    {
        return preg_replace('/\\'. $slash .'+/', $slash, str_replace(array('/', "\\"), $slash, $path));
    }
protected function unifyPath ( $ path , $ slash = DIRECTORY_SEPARATOR ) { return preg_replace ( '/\\' . $ slash . '+/' , $ slash , str_replace ( array ( '/' , "\\" ) , $ slash , $ path ) ) ; }
Unify filesystem path
@param string $path
@param string $slash
@return string
Unify filesystem path