瀏覽代碼

Fixed error public/vendor/scribe is not empty

Przemysław Pyszczek 4 年之前
父節點
當前提交
86ce5521d1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Writing/Writer.php

+ 1 - 1
src/Writing/Writer.php

@@ -270,7 +270,7 @@ class Writer
 
         // Move assets from public/docs to $publicDirectory/vendor/scribe
         // We need to do this delete first, otherwise move won't work if folder exists
-        Utils::deleteDirectoryAndContents("$publicDirectory/vendor/scribe/", getcwd());
+        Utils::deleteDirectoryAndContents("$publicDirectory/vendor/scribe/", '/');
         rename("{$this->staticTypeOutputPath}/", "$publicDirectory/vendor/scribe/");
 
         $contents = file_get_contents("$this->laravelTypeOutputPath/index.blade.php");