Explorar el Código

Merge pull request #218 from ta-ppyszczek/master

Fixed error public/vendor/scribe is not empty
Shalvah hace 4 años
padre
commit
2dc4ad5f9c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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");