1
0
Fork 0
mirror of synced 2024-05-20 20:52:36 +12:00

Updated typo and changelog

This commit is contained in:
Eldad Fux 2020-05-26 22:44:47 +03:00
parent c150b94ece
commit c1ddf8ddc2
3 changed files with 7 additions and 6 deletions

View file

@ -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)

View file

@ -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.

View file

@ -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) {