FileStorageInterface::spaceUsed

public FileStorageInterface::spaceUsed($uid = NULL, $status = FILE_STATUS_PERMANENT)

Determines total disk space used by a single user or the whole filesystem.

Parameters

int $uid: Optional. A user id, specifying NULL returns the total space used by all non-temporary files.

int $status: (Optional) The file status to consider. The default is to only consider files in status FILE_STATUS_PERMANENT.

Return value

int An integer containing the number of bytes used.

File

core/modules/file/src/FileStorageInterface.php, line 25

Class

FileStorageInterface
Defines an interface for file entity storage classes.

Namespace

Drupal\file

Code

public function spaceUsed($uid = NULL, $status = FILE_STATUS_PERMANENT);
doc_Drupal
2016-10-29 09:13:45
Comments
Leave a Comment

Please login to continue.