浏览代码

using emptyDirectory instead of remove for clearing the cache

Christian Ego 6 年之前
父节点
当前提交
7c64300a1b
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;