From e1bdf6cd04be6181ec53b030c7b713cd4e8a37c9 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Thu, 25 Jun 2020 23:52:25 +0300 Subject: [PATCH] Fixed S3 missing method --- src/Appwrite/Storage/Device/S3.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Appwrite/Storage/Device/S3.php b/src/Appwrite/Storage/Device/S3.php index 1bc06f57b7..2b46c8d447 100644 --- a/src/Appwrite/Storage/Device/S3.php +++ b/src/Appwrite/Storage/Device/S3.php @@ -154,6 +154,22 @@ class S3 extends Device return ''; } + /** + * Get directory size in bytes. + * + * Return -1 on error + * + * Based on http://www.jonasjohn.de/snippets/php/dir-size.htm + * + * @param $path + * + * @return int + */ + public function getDirectorySize(string $path):int + { + return 0; + } + /** * Get Partition Free Space. *