Fix filesystem::copy with broken symlinks, refs #11864
parent
299b2c1f2d
commit
57427e6227
|
@ -363,6 +363,9 @@ class Filesystem
|
||||||
*/
|
*/
|
||||||
public function copy(string $source, string $target)
|
public function copy(string $source, string $target)
|
||||||
{
|
{
|
||||||
|
// refs https://github.com/composer/composer/issues/11864
|
||||||
|
$target = $this->normalizePath($target);
|
||||||
|
|
||||||
if (!is_dir($source)) {
|
if (!is_dir($source)) {
|
||||||
return copy($source, $target);
|
return copy($source, $target);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue