文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>python获得磁盘剩余空间 statvfs[转]

python获得磁盘剩余空间 statvfs[转]

时间:2010-06-06  来源:hkebao

Deprecated since version 2.6: The statvfs module has been deprecated for removal in Python 3.0.(Deprecated :取缔)

The statvfs module defines constants so interpreting the result if os.statvfs(), which returns a tuple, can be made without remembering “magic numbers.” Each of the constants defined in this module is the index of the entry in the tuple returned by os.statvfs() that contains the specified information.

statvfs.F_BSIZE¶Preferred file system block size. statvfs.F_FRSIZE¶Fundamental file system block size. statvfs.F_BLOCKS¶Total number of blocks in the filesystem. statvfs.F_BFREE¶Total number of free blocks. statvfs.F_BAVAIL¶Free blocks available to non-super user. statvfs.F_FILES¶Total number of file nodes. statvfs.F_FFREE¶Total number of free file nodes. statvfs.F_FAVAIL¶Free nodes available to non-super user. statvfs.F_FLAG¶Flags. System dependent: see statvfs() man page. statvfs.F_NAMEMAX¶Maximum file name length.
如果用df 不好的话建议可以使用这个模块测试下。
相关阅读 更多 +
排行榜 更多 +
找茬脑洞的世界安卓版

找茬脑洞的世界安卓版

休闲益智 下载
滑板英雄跑酷2手游

滑板英雄跑酷2手游

休闲益智 下载
披萨对对看下载

披萨对对看下载

休闲益智 下载