Prechádzať zdrojové kódy

Fixed error public/vendor/scribe is not empty

Przemysław Pyszczek 4 rokov pred
rodič
commit
86ce5521d1
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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");