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