1
0
Fork 0

Have xcopy overwrite existing files

pull/4580/head
Shawn Tunney 2015-11-04 10:46:27 -05:00
parent 63698facf5
commit 54584e6b0f
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ class Filesystem
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
// Try to copy & delete - this is a workaround for random "Access denied" errors.
$command = sprintf('xcopy %s %s /E /I /Q', ProcessExecutor::escape($source), ProcessExecutor::escape($target));
$command = sprintf('xcopy %s %s /E /I /Q /Y', ProcessExecutor::escape($source), ProcessExecutor::escape($target));
$result = $this->processExecutor->execute($command, $output);
// clear stat cache because external processes aren't tracked by the php stat cache