From 882ce1b39f480a47fc43a99d47f789b688d5cbf1 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 10 Mar 2013 20:17:00 +0100 Subject: [PATCH] [GH-1591] More fixing of Installation on Windows Azure. Renaming between different partitions + xcopy fail, so we need to copyAndRemove() manually. --- src/Composer/Util/Filesystem.php | 2 ++ 1 file changed, 2 insertions(+) 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.