diff --git a/src/Composer/Util/Filesystem.php b/src/Composer/Util/Filesystem.php index b9fa1fff1..d8a39952a 100644 --- a/src/Composer/Util/Filesystem.php +++ b/src/Composer/Util/Filesystem.php @@ -164,6 +164,8 @@ class Filesystem return; } + + return $this->copyThenRemove($source, $target); } else { // We do not use PHP's "rename" function here since it does not support // the case where $source, and $target are located on different partitions.