mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/15342] Add method to get free space
PHPBB3-15342
This commit is contained in:
@@ -360,4 +360,17 @@ class storage
|
||||
|
||||
return $number_files;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get space available in bytes.
|
||||
*
|
||||
* @throws \phpbb\storage\exception\exception When can't get available space
|
||||
*
|
||||
* @return int Returns available space
|
||||
*/
|
||||
public function free_space()
|
||||
{
|
||||
return $this->get_adapter()->free_space();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user