Availability: >= 3.0
Type: Object Property
Description: Restricts the amount of data that can be stored in the directory.
$directory->diskQuota = int $quota;
The value should either be an integer specified in bytes or a string consisting of a numeric value followed by an optional space and unit modifier. Set to 0 for unlimited data.
Setting the quota to 2 MB:
$dir->diskQuota = '2 MB';
Setting the quota to 500 KB:
$dir->diskQuota = '500 KB';
The user will not be able to upload file to this directory if doing so will put the directory over it's disk quota.