Fixed exception text and some warnings.
parent
5489586436
commit
358cb3f4fc
|
@ -594,10 +594,10 @@ class Filesystem
|
||||||
$cmd = sprintf('mklink /J %s %s',
|
$cmd = sprintf('mklink /J %s %s',
|
||||||
ProcessExecutor::escape(str_replace('/', DIRECTORY_SEPARATOR, $targetDir)),
|
ProcessExecutor::escape(str_replace('/', DIRECTORY_SEPARATOR, $targetDir)),
|
||||||
ProcessExecutor::escape(realpath($originDir)));
|
ProcessExecutor::escape(realpath($originDir)));
|
||||||
if ($this->getProcess()->execute($cmd, $output) === 0)
|
if ($this->getProcess()->execute($cmd) === 0)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw new IOException(sprintf('Failed to create symbolic link from "%s" to "%s".', $originDir, $targetDir), 0, null, $targetDir);
|
throw new IOException(sprintf('Failed to create junction from "%s" to "%s".', $originDir, $targetDir), 0, null, $targetDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -629,6 +629,6 @@ class Filesystem
|
||||||
}
|
}
|
||||||
$junction = rtrim(str_replace('/', DIRECTORY_SEPARATOR, $junction), DIRECTORY_SEPARATOR);
|
$junction = rtrim(str_replace('/', DIRECTORY_SEPARATOR, $junction), DIRECTORY_SEPARATOR);
|
||||||
$cmd = sprintf('rmdir /S /Q %s', ProcessExecutor::escape($junction));
|
$cmd = sprintf('rmdir /S /Q %s', ProcessExecutor::escape($junction));
|
||||||
return $this->getProcess()->execute($cmd, $output) === 0;
|
return $this->getProcess()->execute($cmd) === 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue