Merge pull request #17049 from eileenmcnaughton/phone_array
[civicrm-core.git] / Civi / Core / AssetBuilder.php
index 4f0756610ec2f2765024d02b8d0b578ed7fa7306..82e2141461b1e15e8ab74ce669683b9eac168a0a 100644 (file)
@@ -226,9 +226,11 @@ class AssetBuilder {
 
   /**
    * Clear out any cache files.
+   *
+   * @param bool $removeDir Should folder itself be removed too.
    */
-  public function clear() {
-    \CRM_Utils_File::cleanDir($this->getCachePath());
+  public function clear($removeDir = TRUE) {
+    \CRM_Utils_File::cleanDir($this->getCachePath(), $removeDir);
   }
 
   /**