Explorar o código

using emptyDirectory instead of remove for clearing the cache

Christian Ego %!s(int64=6) %!d(string=hai) anos
pai
achega
7c64300a1b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/Composer/Cache.php

+ 2 - 1
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;