PHP » PYTHON |
login |
register |
about
|
PYTHON disk_total_space
is this article helpful?
|
Python replacement for PHP's disk_total_space
[
edit
| history
]
import os temp = os.statvfs(directory) result = temp.f_blocks * temp.f_bsize disk_total_space(PHP 4 >= 4.1.0, PHP 5) disk_total_space — Returns the total size of a directory Description
float disk_total_space
( string $directory
)
Given a string containing a directory, this function will return the total number of bytes on the corresponding filesystem or disk partition. Parameters
Return ValuesReturns the total number of bytes as a float. Examples
Example #1 disk_total_space() example
<?php
Notes
|
more
Recently updated
more
Most requested
more
Last requests
|