5 use Drupal\Core\Entity\ContentEntityStorageInterface;
8 * Defines an interface for file entity storage classes.
10 interface FileStorageInterface extends ContentEntityStorageInterface {
13 * Determines total disk space used by a single user or the whole filesystem.
16 * Optional. A user id, specifying NULL returns the total space used by all
17 * non-temporary files.
19 * (Optional) The file status to consider. The default is to only
20 * consider files in status FILE_STATUS_PERMANENT.
23 * An integer containing the number of bytes used.
25 public function spaceUsed($uid = NULL, $status = FILE_STATUS_PERMANENT);