protected function fixTarPath($path)
    {
        if (OsUtil::isWindows()) {
            $path = preg_replace_callback(
                '#^([A-Z]):/#i',
                function (array $matches) {
                    return '/' . strtolower($matches[1]) . '/';
                },
                str_replace('\\', '/', $path)
            );
        }

        return $path;
    }
protected function fixTarPath($path)
    {
        if (OsUtil::isWindows()) {
            $path = preg_replace_callback(
                '#^([A-Z]):/#i',
                function (array $matches) {
                    return '/' . strtolower($matches[1]) . '/';
                },
                str_replace('\\', '/', $path)
            );
        }

        return $path;
    }
protected function fixTarPath ( $ path ) { if ( OsUtil :: isWindows ( ) ) { $ path = preg_replace_callback ( '#^([A-Z]):/#i' , function ( array $ matches ) { return '/' . strtolower ( $ matches [ 1 ] ) . '/' ; } , str_replace ( '\\' , '/' , $ path ) ) ; } return $ path ; }
Fix a path so that it can be used with tar on Windows.

@see http://betterlogic.com/roger/2009/01/tar-woes-with-windows/

@param string $path

@return string
Fix a path so that it can be used with tar on Windows .