Skip to content

Commit

Permalink
Merge pull request #8 from bnchdrff/windowsOOM
Browse files Browse the repository at this point in the history
windows OOM
  • Loading branch information
derhasi committed Oct 20, 2015
2 parents 366e589 + b364a91 commit e10d7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PathPreserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '') {
Expand Down

0 comments on commit e10d7ac

Please sign in to comment.