Merge pull request #7969 from johnstevenson/remove-junction-tweak

Remove junctions with PHP rather than system rmdir
main
Jordi Boggiano 5 years ago committed by GitHub
commit 603fe500f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -692,9 +692,7 @@ class Filesystem
if (!$this->isJunction($junction)) {
throw new IOException(sprintf('%s is not a junction and thus cannot be removed as one', $junction));
}
$cmd = sprintf('rmdir /S /Q %s', ProcessExecutor::escape($junction));
clearstatcache(true, $junction);
return ($this->getProcess()->execute($cmd, $output) === 0);
return $this->rmdir($junction);
}
}

Loading…
Cancel
Save