From 7c64300a1b4516fe8693ef17c690edafd25b716d Mon Sep 17 00:00:00 2001 From: Christian Ego Date: Mon, 11 Mar 2019 10:24:39 +0100 Subject: [PATCH] using emptyDirectory instead of remove for clearing the cache --- src/Composer/Cache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Composer/Cache.php b/src/Composer/Cache.php index 3f2861797..06c6a0996 100644 --- a/src/Composer/Cache.php +++ b/src/Composer/Cache.php @@ -189,7 +189,8 @@ class Cache public function clear() { if ($this->enabled) { - return $this->filesystem->removeDirectory($this->root); + $this->filesystem->emptyDirectory($this->root); + return true; } return false;