private static function windowsFix($path) { $path = str_replace('\\', '/', $path); // https://regex101.com/r/RRtZKq/2 if (preg_match('/^(\\w)(\\:.*)/', $path, $matches)) { $path = strtolower($matches[1]) . $matches[2]; } return $path; }