From eb32795e64f1210ae9aaa2dfc30c0eb070e6bd76 Mon Sep 17 00:00:00 2001 From: Patrick Dawkins Date: Fri, 28 Jun 2019 12:13:18 +0100 Subject: [PATCH] Attempt to fix "Warning: rename(.platform/local/builds/default-tmp,.platform/local/builds/default): No such file or directory in LocalBuild.php on line 337" --- src/Local/LocalBuild.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Local/LocalBuild.php b/src/Local/LocalBuild.php index 1801333c4..dbf9ef652 100644 --- a/src/Local/LocalBuild.php +++ b/src/Local/LocalBuild.php @@ -334,9 +334,9 @@ protected function buildApp($app, $destination = null) return false; } } - if (!rename($tmpBuildDir, $buildDir)) { + if (is_dir($tmpBuildDir) && !rename($tmpBuildDir, $buildDir)) { $this->output->writeln(sprintf( - 'Failed to move temporary build directory into %s', + 'Failed to move temporary build directory to %s', $buildDir ));