From c1ddf8ddc2519c52193e1dcbadd10bc3487178f7 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Tue, 26 May 2020 22:44:47 +0300 Subject: [PATCH] Updated typo and changelog --- CHANGES.md | 3 ++- src/Appwrite/Storage/Device.php | 4 ++-- src/Appwrite/Storage/Devices/Local.php | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 2fddaed270..553bd54894 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,8 +10,9 @@ - Fixed wrong SDK method type in avatars browser route - Fixed bug denied public documents (*) to be accessed by guest users - Fixed cache control issue not allowing collection UI to update properly -- Added missing webhooks events in the console - Fixed a bug where single permission tag in the console was not being saved +- Added missing webhooks events in the console +- Added missing option to delete project # Version 0.6.1 (PRE-RELEASE) diff --git a/src/Appwrite/Storage/Device.php b/src/Appwrite/Storage/Device.php index d6ce7ff29a..42774e01f5 100644 --- a/src/Appwrite/Storage/Device.php +++ b/src/Appwrite/Storage/Device.php @@ -95,11 +95,11 @@ abstract class Device * @see http://php.net/manual/en/function.filesize.php * * @param string $path - * @param bool $recrusive + * @param bool $recursive * * @return bool */ - abstract public function delete(string $path, bool $recrusive = false):bool; + abstract public function delete(string $path, bool $recursive = false):bool; /** * Returns given file path its size. diff --git a/src/Appwrite/Storage/Devices/Local.php b/src/Appwrite/Storage/Devices/Local.php index ca487f8e1d..4f6e399d24 100644 --- a/src/Appwrite/Storage/Devices/Local.php +++ b/src/Appwrite/Storage/Devices/Local.php @@ -151,13 +151,13 @@ class Local extends Device * @see http://php.net/manual/en/function.filesize.php * * @param string $path - * @param bool $recrusive + * @param bool $recursive * * @return bool */ - public function delete(string $path, bool $recrusive = false):bool + public function delete(string $path, bool $recursive = false):bool { - if(is_dir($path) && $recrusive) { + if(is_dir($path) && $recursive) { $files = glob($path.'*', GLOB_MARK); // GLOB_MARK adds a slash to directories returned foreach($files as $file) {