diff --git a/src/PathPreserver.php b/src/PathPreserver.php index 21f6680..2164057 100644 --- a/src/PathPreserver.php +++ b/src/PathPreserver.php @@ -231,7 +231,7 @@ static public function file_exists($path) { $reset_perms = array(); $folder = $path; while ($folder = dirname($folder)) { - if ($folder === '.' || $folder === '/') { + if ($folder === '.' || $folder === '/' || preg_match("/^.:\\\\$/", $folder)) { break; } elseif ($folder === '') {