From fa9629e7960c3dd10c74f9373233dfde831b6672 Mon Sep 17 00:00:00 2001 From: printempw Date: Fri, 30 Sep 2016 21:00:47 +0800 Subject: [PATCH] fix updater --- app/Services/Storage.php | 165 +++++++++++++++++++++++++++++++++++++++ app/Services/Updater.php | 1 - 2 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 app/Services/Storage.php diff --git a/app/Services/Storage.php b/app/Services/Storage.php new file mode 100644 index 00000000..aad521f8 --- /dev/null +++ b/app/Services/Storage.php @@ -0,0 +1,165 @@ +read()) { + if ($entry != "." && $entry != "..") { + if (is_dir($source.'/'.$entry)) { + // recursion + self::copyDir($source.'/'.$entry, $dest.'/'.$entry); + } else { + @copy($source.'/'.$entry, $dest.'/'.$entry); + } + } + } + return true; + } +} diff --git a/app/Services/Updater.php b/app/Services/Updater.php index 34a5a713..e9872dd1 100644 --- a/app/Services/Updater.php +++ b/app/Services/Updater.php @@ -2,7 +2,6 @@ namespace App\Services; -use Blessing\Storage; use Option; class Updater