Current Location: Home> Function Categories> disk_total_space

disk_total_space

Returns the total size of the file system or disk partition
Name:disk_total_space
Category:File system
Programming Language:php
One-line Description:Returns the total disk capacity of a directory.

Example

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">disk_total_space</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"C:"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

The output looks like this:

 509693888668
Similar Functions
  • Get the inode of the file fileinode

    fileinode

    Gettheinodeofthefile
  • Lightweight consultation file locking flock

    flock

    Lightweightconsultat
  • Read a line from the file pointer and parse the CSV field fgetcsv

    fgetcsv

    Readalinefromthefile
  • Get file modification time filemtime

    filemtime

    Getfilemodificationt
  • Close an open file pointer fclose

    fclose

    Closeanopenfilepoint
  • Obtain file permissions fileperms

    fileperms

    Obtainfilepermission
  • Find file paths that match patterns glob

    glob

    Findfilepathsthatmat
  • Read the entire file into an array file

    file

    Readtheentirefileint