From 71d0f466991b2931df17c841b5d79dec19d36e95 Mon Sep 17 00:00:00 2001 From: Siavash Date: Sat, 15 Aug 2020 11:32:20 +0430 Subject: [PATCH] Fixed #6 . Thanks to @hackerkok . --- src/SourceEncryptCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SourceEncryptCommand.php b/src/SourceEncryptCommand.php index 9bc4cc3..55f2fe7 100644 --- a/src/SourceEncryptCommand.php +++ b/src/SourceEncryptCommand.php @@ -127,6 +127,7 @@ private static function encryptFile($filePath, $destination, $keyLength) } /*$cipher = bolt_encrypt('?> ' . $fileContents, $key);*/ $cipher = bolt_encrypt($fileContents, $key); + File::isDirectory(dirname("$destination/$filePath")) or File::makeDirectory(dirname("$destination/$filePath"), 0755, true, true); File::put(base_path("$destination/$filePath"), $prepend.$cipher); unset($cipher);