Skip to content

Commit

Permalink
skip windows drives
Browse files Browse the repository at this point in the history
fixes #1
  • Loading branch information
bnchdrff committed Oct 7, 2015
1 parent 13309ce commit 6f23c19
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 === '/' || strpos($folder, ':\\')) {
break;
}
elseif ($folder === '') {
Expand Down

0 comments on commit 6f23c19

Please sign in to comment.