The disk_total_space() function returns the total size, in bytes, of the specified filesystem or disk.
Tip: Look at the disk_free_space() to get the free space of a filesystem or disk.
disk_total_space(directory)
Parameter | Description |
---|---|
directory | Required. Specifies the filesystem or disk to check |
Given below example Return the total size, in bytes, of the C: directory:
Output : 159382839296