當前位置: 首頁> 函數類別大全> disk_total_space

disk_total_space

返回文件系統或磁盤分區的總大小
名稱:disk_total_space
分類:文件系統
所屬語言:php
一句話介紹:返回一個目錄的磁盤總容量。

定義和用法

disk_total_space()函數返回指定目錄的磁盤總大小。

實例

<?php
echo disk_total_space ( "C:" ) ;
?>

輸出類似這樣:

 509693888668

文法

disk_total_space ( directory )
參數 描述
directory 必需。規定要檢查的目錄。

說明

directory參數是一個目錄的字符串。該函數將根據相應的文件系統或磁盤分區返回所有的字節數。

同類函數
  • 從文件指針中讀取一行 fgets

    fgets

    從文件指針中讀取一行
  • 將數據(但不是元數據)同步到文件 fdatasync

    fdatasync

    將數據(但不是元數據)同步到文件
  • 將整個文件讀入一個字符串 file_get_contents

    file_get_contents

    將整個文件讀入一個字符串
  • 取得文件的inode fileinode

    fileinode

    取得文件的inode
  • 新建目錄 mkdir

    mkdir

    新建目錄
  • 獲取真實路徑緩衝區的大小 realpath_cache_size

    realpath_cache_size

    獲取真實路徑緩衝區的大小
  • 改變文件模式 chmod

    chmod

    改變文件模式
  • 獲取文件所有者 fileowner

    fileowner

    獲取文件所有者
熱門文章