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